Corrected usage of B_AFFECTION_MECHANICS in CalcCritChanceStage
This commit is contained in:
parent
aa5c6a3f01
commit
deef09112f
1 changed files with 3 additions and 1 deletions
|
@ -1892,9 +1892,11 @@ s32 CalcCritChanceStage(u8 battlerAtk, u8 battlerDef, u32 move, bool32 recordAbi
|
|||
+ (holdEffectAtk == HOLD_EFFECT_SCOPE_LENS)
|
||||
+ 2 * (holdEffectAtk == HOLD_EFFECT_LUCKY_PUNCH && gBattleMons[gBattlerAttacker].species == SPECIES_CHANSEY)
|
||||
+ 2 * BENEFITS_FROM_LEEK(battlerAtk, holdEffectAtk)
|
||||
+ (abilityAtk == ABILITY_SUPER_LUCK)
|
||||
#if B_AFFECTION_MECHANICS == TRUE
|
||||
+ (abilityAtk == ABILITY_SUPER_LUCK)
|
||||
*= 2 (GetMonFriendshipScore(&gPlayerParty[gBattlerPartyIndexes[gBattlerAttacker]]) >= 5);
|
||||
#else
|
||||
+ (abilityAtk == ABILITY_SUPER_LUCK);
|
||||
#endif
|
||||
|
||||
if (critChance >= ARRAY_COUNT(sCriticalHitChance))
|
||||
|
|
Loading…
Reference in a new issue