Merge pull request #2161 from Sneed69/confusion-fix
Fix confusion and disobedience self damage benefiting from STAB
This commit is contained in:
commit
14c531cf75
@ -8943,7 +8943,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…
x
Reference in New Issue
Block a user