Merge pull request #1268 from LOuroboros/move_flags
Corrected small inconsistency in move flag names
This commit is contained in:
commit
ba3021db64
4 changed files with 174 additions and 174 deletions
|
@ -241,10 +241,10 @@
|
||||||
// Battle move flags
|
// Battle move flags
|
||||||
#define FLAG_MAKES_CONTACT (1 << 0)
|
#define FLAG_MAKES_CONTACT (1 << 0)
|
||||||
#define FLAG_PROTECT_AFFECTED (1 << 1)
|
#define FLAG_PROTECT_AFFECTED (1 << 1)
|
||||||
#define FLAG_MAGICCOAT_AFFECTED (1 << 2)
|
#define FLAG_MAGIC_COAT_AFFECTED (1 << 2)
|
||||||
#define FLAG_SNATCH_AFFECTED (1 << 3)
|
#define FLAG_SNATCH_AFFECTED (1 << 3)
|
||||||
#define FLAG_MIRROR_MOVE_AFFECTED (1 << 4)
|
#define FLAG_MIRROR_MOVE_AFFECTED (1 << 4)
|
||||||
#define FLAG_KINGSROCK_AFFECTED (1 << 5)
|
#define FLAG_KINGS_ROCK_AFFECTED (1 << 5)
|
||||||
|
|
||||||
// Growth rates
|
// Growth rates
|
||||||
#define GROWTH_MEDIUM_FAST 0
|
#define GROWTH_MEDIUM_FAST 0
|
||||||
|
|
|
@ -953,7 +953,7 @@ static void Cmd_attackcanceler(void)
|
||||||
|
|
||||||
gHitMarker |= HITMARKER_OBEYS;
|
gHitMarker |= HITMARKER_OBEYS;
|
||||||
|
|
||||||
if (gProtectStructs[gBattlerTarget].bounceMove && gBattleMoves[gCurrentMove].flags & FLAG_MAGICCOAT_AFFECTED)
|
if (gProtectStructs[gBattlerTarget].bounceMove && gBattleMoves[gCurrentMove].flags & FLAG_MAGIC_COAT_AFFECTED)
|
||||||
{
|
{
|
||||||
PressurePPLose(gBattlerAttacker, gBattlerTarget, MOVE_MAGIC_COAT);
|
PressurePPLose(gBattlerAttacker, gBattlerTarget, MOVE_MAGIC_COAT);
|
||||||
gProtectStructs[gBattlerTarget].bounceMove = 0;
|
gProtectStructs[gBattlerTarget].bounceMove = 0;
|
||||||
|
|
|
@ -3818,7 +3818,7 @@ u8 ItemBattleEffects(u8 caseID, u8 battlerId, bool8 moveTurn)
|
||||||
if (!(gMoveResultFlags & MOVE_RESULT_NO_EFFECT)
|
if (!(gMoveResultFlags & MOVE_RESULT_NO_EFFECT)
|
||||||
&& TARGET_TURN_DAMAGED
|
&& TARGET_TURN_DAMAGED
|
||||||
&& (Random() % 100) < atkHoldEffectParam
|
&& (Random() % 100) < atkHoldEffectParam
|
||||||
&& gBattleMoves[gCurrentMove].flags & FLAG_KINGSROCK_AFFECTED
|
&& gBattleMoves[gCurrentMove].flags & FLAG_KINGS_ROCK_AFFECTED
|
||||||
&& gBattleMons[gBattlerTarget].hp)
|
&& gBattleMons[gBattlerTarget].hp)
|
||||||
{
|
{
|
||||||
gBattleCommunication[MOVE_EFFECT_BYTE] = MOVE_EFFECT_FLINCH;
|
gBattleCommunication[MOVE_EFFECT_BYTE] = MOVE_EFFECT_FLINCH;
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue