summaryrefslogtreecommitdiff
path: root/src/calculate_base_damage.c
diff options
context:
space:
mode:
authorcamthesaxman <camthesaxman@users.noreply.github.com>2019-07-31 00:13:42 -0500
committercamthesaxman <camthesaxman@users.noreply.github.com>2019-07-31 00:13:42 -0500
commitb74a0c3122113b5ebef469739745e2b8fd420c50 (patch)
treee6bd06cc852ca638f9dc9a0d7c8a12b7ee394a5a /src/calculate_base_damage.c
parentd7a754386ce491791fe8216fdcb0f4fb72240774 (diff)
resolve more battle system differences
Diffstat (limited to 'src/calculate_base_damage.c')
-rw-r--r--src/calculate_base_damage.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/calculate_base_damage.c b/src/calculate_base_damage.c
index 4c2f74f65..760887834 100644
--- a/src/calculate_base_damage.c
+++ b/src/calculate_base_damage.c
@@ -153,7 +153,7 @@ s32 CalculateBaseDamage(struct BattlePokemon *attacker, struct BattlePokemon *de
if (attackerHoldEffect == gHoldEffectToType[i][0]
&& type == gHoldEffectToType[i][1])
{
- if (TYPE_IS_PHYSICAL(type))
+ if (IS_TYPE_PHYSICAL(type))
attack = (attack * (attackerHoldEffectParam + 100)) / 100;
else
spAttack = (spAttack * (attackerHoldEffectParam + 100)) / 100;
@@ -204,7 +204,7 @@ s32 CalculateBaseDamage(struct BattlePokemon *attacker, struct BattlePokemon *de
if (gBattleMoves[gCurrentMove].effect == EFFECT_EXPLOSION)
defense /= 2;
- if (TYPE_IS_PHYSICAL(type)) // type < TYPE_MYSTERY
+ if (IS_TYPE_PHYSICAL(type)) // type < TYPE_MYSTERY
{
if (gCritMultiplier == 2)
{
@@ -254,7 +254,7 @@ s32 CalculateBaseDamage(struct BattlePokemon *attacker, struct BattlePokemon *de
if (type == TYPE_MYSTERY)
damage = 0; // is ??? type. does 0 damage.
- if (TYPE_IS_SPECIAL(type)) // type > TYPE_MYSTERY
+ if (IS_TYPE_SPECIAL(type)) // type > TYPE_MYSTERY
{
if (gCritMultiplier == 2)
{