Gen7Data/Scripts/Abilities/AngerPoint.as

9 lines
298 B
ActionScript

namespace Gen7 {
class AngerPoint : PkmnScript {
void OnIncomingHit(ExecutingMove@ move, Pokemon@ target, uint8 hit) override {
if (move.GetHitData(target, hit).IsCritical){
target.ChangeStatBoost(Statistic::Attack, 12, true);
}
}
}
}