Gen7Data/Scripts/Abilities/AngerPoint.as

9 lines
292 B
ActionScript
Raw Normal View History

2021-11-19 17:12:10 +00:00
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);
}
}
}
}