Gen7Data/Scripts/Moves/ChangeTargetAtt.as

14 lines
429 B
ActionScript
Raw Normal View History

2021-03-28 18:22:46 +00:00
namespace Gen7 {
[Move effect=ChangeTargetAtt]
class ChangeTargetAttack : PkmnScript{
int8 _amount;
void OnInitialize(const EffectParameter@[] &in parameters) override{
_amount = int8(parameters[0].AsInt());
}
void OnSecondaryEffect(ExecutingMove@ attack, Pokemon@ target, uint8 hit) override{
target.ChangeStatBoost(Statistic::Attack, _amount);
}
}
}