Rename CONTACT macros to ON_DAMAGE

This commit is contained in:
GriffinR
2019-09-27 12:27:36 -04:00
parent 3bf8129396
commit 73b96fe145
5 changed files with 6 additions and 6 deletions

View File

@@ -4535,8 +4535,8 @@ static void Cmd_moveend(void)
effect = TRUE;
gBattleScripting.moveendState++;
break;
case MOVEEND_CONTACT_ABILITIES: // Also includes Color Change
if (AbilityBattleEffects(ABILITYEFFECT_CONTACT, gBattlerTarget, 0, 0, 0))
case MOVEEND_ON_DAMAGE_ABILITIES: // Contact abilities and Color Change
if (AbilityBattleEffects(ABILITYEFFECT_ON_DAMAGE, gBattlerTarget, 0, 0, 0))
effect = TRUE;
gBattleScripting.moveendState++;
break;

View File

@@ -2084,7 +2084,7 @@ u8 AbilityBattleEffects(u8 caseID, u8 battler, u8 ability, u8 special, u16 moveA
}
}
break;
case ABILITYEFFECT_CONTACT: // Also includes Color Change
case ABILITYEFFECT_ON_DAMAGE: // Contact abilities and Color Change
switch (gLastUsedAbility)
{
case ABILITY_COLOR_CHANGE: