Gen7Data/Scripts/Abilities/BattleBond.as

16 lines
542 B
ActionScript

namespace Gen7 {
[Ability effect=BattleBond]
class BattleBond : PkmnScript {
void OnFaintingOpponent(ExecutingMove@ move, Pokemon@, uint8) override {
if (move.User.Species.Name == "greninja"){
move.User.ChangeForme("ash");
}
}
void OverrideBasePower(ExecutingMove@ move, Pokemon@, uint8, uint8 &inout damage) override {
if (move.User.Forme.Name == "ash" && move.UseMove.Name == "water_shuriken"){
damage = 20;
}
}
}
}