mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-31 00:13:58 +01:00
some ability tweaks
This commit is contained in:
parent
6ef28be22b
commit
ee8a00be81
@ -4362,6 +4362,7 @@ static void Cmd_playstatchangeanimation(void)
|
||||
}
|
||||
else if (!gSideTimers[GET_BATTLER_SIDE(gActiveBattler)].mistTimer
|
||||
&& ability != ABILITY_CLEAR_BODY
|
||||
&& ability != ABILITY_FULL_METAL_BODY
|
||||
&& ability != ABILITY_WHITE_SMOKE
|
||||
&& !(ability == ABILITY_KEEN_EYE && currStat == STAT_ACC)
|
||||
&& !(ability == ABILITY_HYPER_CUTTER && currStat == STAT_ATK)
|
||||
|
@ -6051,9 +6051,10 @@ static u32 CalcFinalDmg(u32 dmg, u16 move, u8 battlerAtk, u8 battlerDef, u8 move
|
||||
}
|
||||
|
||||
// reflect, light screen, aurora veil
|
||||
if ((gSideStatuses[defSide] & SIDE_STATUS_REFLECT && IS_MOVE_PHYSICAL(move))
|
||||
|| (gSideStatuses[defSide] & SIDE_STATUS_LIGHTSCREEN && IS_MOVE_SPECIAL(move))
|
||||
|| (gSideStatuses[defSide] & SIDE_STATUS_AURORA_VEIL))
|
||||
if (((gSideStatuses[defSide] & SIDE_STATUS_REFLECT && IS_MOVE_PHYSICAL(move))
|
||||
|| (gSideStatuses[defSide] & SIDE_STATUS_LIGHTSCREEN && IS_MOVE_SPECIAL(move))
|
||||
|| (gSideStatuses[defSide] & SIDE_STATUS_AURORA_VEIL))
|
||||
&& abilityAtk != ABILITY_INFILTRATOR)
|
||||
{
|
||||
if (gBattleTypeFlags & BATTLE_TYPE_DOUBLE)
|
||||
MulModifier(&finalModifier, UQ_4_12(0.66));
|
||||
@ -6082,6 +6083,7 @@ static u32 CalcFinalDmg(u32 dmg, u16 move, u8 battlerAtk, u8 battlerDef, u8 move
|
||||
switch (abilityDef)
|
||||
{
|
||||
case ABILITY_MULTISCALE:
|
||||
case ABILITY_SHADOW_SHIELD:
|
||||
if (BATTLER_MAX_HP(battlerDef))
|
||||
MulModifier(&finalModifier, UQ_4_12(0.5));
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user