Gen7Data/Scripts/Moves/Acrobatics.as

11 lines
363 B
ActionScript
Raw Normal View History

2020-04-10 22:23:17 +00:00
namespace Gen7 {
[Move effect=Acrobatics]
class Acrobatics : PkmnScript{
void OverrideBasePower(ExecutingMove@ attack, Pokemon@ target, uint8 hit, uint8& basePower) override {
if (attack.User.HeldItem is null){
if (basePower >= 128) basePower = 255;
else basePower *= 2;
}
};
}
}