Gen7Data/Scripts/Abilities/IncreasedSTAB.as

10 lines
339 B
ActionScript

namespace Gen7 {
[Ability effect=IncreasedStab]
class IncreasedStab : PkmnScript {
void OverrideSTABModifier(ExecutingMove@ move, Pokemon@ target, uint8 hit, float &inout stabMod) override {
if (move.User.HasType(move.GetHitData(target, hit).Type)){
stabMod = 2;
}
};
}
}