Gen7Data/Scripts/Abilities/Battery.as

12 lines
334 B
ActionScript
Raw Normal View History

2021-11-21 16:54:16 +00:00
namespace Gen7 {
[Ability effect=Battery]
class BatteryAbility : PkmnScript {
void OnSwitchIn(Pokemon@ pokemon) override {
pokemon.BattleSide.AddVolatile("Battery");
}
void OnRemove() override {
cast<Pokemon@>(GetOwner()).BattleSide.RemoveVolatile("Battery");
}
}
}