mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-28 04:34:28 +01:00
move_none does not benefit from stab
This commit is contained in:
parent
6be8151981
commit
e1c57e4071
@ -8941,7 +8941,7 @@ static u32 CalcFinalDmg(u32 dmg, u16 move, u8 battlerAtk, u8 battlerDef, u8 move
|
||||
}
|
||||
|
||||
// check stab
|
||||
if (IS_BATTLER_OF_TYPE(battlerAtk, moveType) && move != MOVE_STRUGGLE)
|
||||
if (IS_BATTLER_OF_TYPE(battlerAtk, moveType) && move != MOVE_STRUGGLE && move != MOVE_NONE)
|
||||
{
|
||||
if (abilityAtk == ABILITY_ADAPTABILITY)
|
||||
MulModifier(&finalModifier, UQ_4_12(2.0));
|
||||
|
Loading…
Reference in New Issue
Block a user