-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert various to callnatives - Part 1 #3269
Convert various to callnatives - Part 1 #3269
Conversation
- jumpifshelltrap - jumpifemergencyexited - jumpifrodaffected - jumpifabsorbaffected - jumpifmotoraffected
|
||
gActiveBattler = GetBattlerForBattleScript(cmd->battler); | ||
HandleScriptMegaPrimalBurst(cmd->caseId, gActiveBattler, HANDLE_TYPE_MEGA_EVOLUTION); | ||
gBattlescriptCurrInstr = cmd->nextInstr; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might be useful to have some macros e.g. #define NEXT_INSTR gBattlescriptCurrInstr = cmd->nextInstr
and a similar FAIL_INSTR so we can put that at the end of these BS callnatives
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since gBattlescriptCurrInstr = cmd->nextInstr
is used by all 3 various
, callnative
and regular commands, it might be better to have this as a separate PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see previous comments
# Conflicts: # include/constants/battle_script_commands.h # src/battle_script_commands.c
Re-ready for re-review |
Description
First batch of conversions.
Discord contact info
AsparagusEduardo