Gen7Data/Scripts/Moves/Acupressure.as

13 lines
423 B
ActionScript

namespace Gen7{
[Move effect=Acupressure]
class Acupressure : PkmnScript {
void OnSecondaryEffect(ExecutingMove@ attack, Pokemon@ target, uint8 hit) override {
if (attack.User is target){
// TODO: Fail.
return;
}
auto randStat = Statistic(target.Battle.Random.Get(0, 6));
target.ChangeStatBoost(randStat, 2);
};
}
}