Gen7Data/Scripts/Abilities/IncreasedSTAB.as

10 lines
339 B
ActionScript
Raw Normal View History

2021-11-19 17:12:10 +00:00
namespace Gen7 {
[Ability effect=IncreasedStab]
class IncreasedStab : PkmnScript {
void OverrideSTABModifier(ExecutingMove@ move, Pokemon@ target, uint8 hit, float &inout stabMod) override {
2021-11-20 09:10:09 +00:00
if (move.User.HasType(move.GetHitData(target, hit).Type)){
2021-11-19 17:12:10 +00:00
stabMod = 2;
}
};
}
}