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; } }; } }