14 lines
441 B
ActionScript
14 lines
441 B
ActionScript
|
namespace Gen7 {
|
||
|
[Move effect=ChangeTargetSpeed]
|
||
|
shared class ChangeTargetSpeed : PkmnScript{
|
||
|
int8 _amount;
|
||
|
|
||
|
void OnInitialize(const array<EffectParameter@> &in parameters) override{
|
||
|
_amount = int8(parameters[0].AsInt());
|
||
|
}
|
||
|
|
||
|
void OnSecondaryEffect(ExecutingMove@ attack, Pokemon@ target, uint8 hit) override{
|
||
|
target.ChangeStatBoost(Statistic::Speed, _amount);
|
||
|
}
|
||
|
}
|
||
|
}
|