Corrected base species check for Thick Club's effect

Co-authored-by: ultima-soul <33333039+ultima-soul@users.noreply.github.com>
This commit is contained in:
LOuroboros 2021-01-20 19:30:48 -03:00 committed by GitHub
parent 412c28bb7a
commit 2a888a7b3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7116,8 +7116,8 @@ static u32 CalcAttackStat(u16 move, u8 battlerAtk, u8 battlerDef, u8 moveType, b
switch (GetBattlerHoldEffect(battlerAtk, TRUE))
{
case HOLD_EFFECT_THICK_CLUB:
if ((GET_BASE_SPECIES_ID(battlerAtk) == SPECIES_CUBONE
|| GET_BASE_SPECIES_ID(battlerAtk) == SPECIES_MAROWAK)
if ((GET_BASE_SPECIES_ID(gBattleMons[battlerAtk].species) == SPECIES_CUBONE
|| GET_BASE_SPECIES_ID(gBattleMons[battlerAtk].species) == SPECIES_MAROWAK)
&& IS_MOVE_PHYSICAL(move))
MulModifier(&modifier, UQ_4_12(2.0));
break;