mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-27 12:14:20 +01:00
33e8e20118
* Protection from attacks. * Changes form when Busting Disguise. * Ability changing moves set to fail. - Simple Beam and Worry Seed now fail if the target has Disguise. - Role Play and Skill Swap now fail if either the attacker or the target have Disguise. * Disguise no longer triggers when transformed. * Mimikyu reverts to Disguised * No longer blocks from entry hazards and weather. * Applied review changes * Oops, new line * yeah
26 lines
1.0 KiB
C
26 lines
1.0 KiB
C
#ifndef GUARD_BATTLE_SCRIPT_COMMANDS_H
|
|
#define GUARD_BATTLE_SCRIPT_COMMANDS_H
|
|
|
|
#define WINDOW_CLEAR 0x1
|
|
#define WINDOW_x80 0x80
|
|
|
|
s32 CalcCritChanceStage(u8 battlerAtk, u8 battlerDef, u32 move, bool32 recordAbility);
|
|
u8 GetBattlerTurnOrderNum(u8 battlerId);
|
|
bool32 NoAliveMonsForEitherParty(void);
|
|
void SetMoveEffect(bool32 primary, u32 certain);
|
|
void BattleDestroyYesNoCursorAt(u8 cursorPosition);
|
|
void BattleCreateYesNoCursorAt(u8 cursorPosition);
|
|
void BufferMoveToLearnIntoBattleTextBuff2(void);
|
|
void HandleBattleWindow(u8 xStart, u8 yStart, u8 xEnd, u8 yEnd, u8 flags);
|
|
bool8 UproarWakeUpCheck(u8 battlerId);
|
|
bool32 DoesSubstituteBlockMove(u8 battlerAtk, u8 battlerDef, u32 move);
|
|
bool32 DoesDisguiseBlockMove(u8 battlerAtk, u8 battlerDef, u32 move);
|
|
bool32 CanUseLastResort(u8 battlerId);
|
|
u32 IsFlowerVeilProtected(u32 battler);
|
|
u32 IsLeafGuardProtected(u32 battler);
|
|
|
|
extern void (* const gBattleScriptingCommandsTable[])(void);
|
|
extern const u8 gUnknown_0831C494[][4];
|
|
|
|
#endif // GUARD_BATTLE_SCRIPT_COMMANDS_H
|