dynamax fix
This commit is contained in:
parent
e8cc3c81f8
commit
b94e3298fc
@ -10047,7 +10047,7 @@ BattleScript_DynamaxBegins_End3:
|
||||
BattleScript_DynamaxEnds::
|
||||
flushtextbox
|
||||
updatedynamax
|
||||
playanimation BS_ATTACKER, B_ANIM_FORM_CHANGE
|
||||
playanimation BS_SCRIPTING, B_ANIM_FORM_CHANGE
|
||||
waitanimation
|
||||
end2
|
||||
|
||||
|
||||
@ -836,7 +836,7 @@ static bool32 HandleEndTurnTorment(u32 battler)
|
||||
|
||||
gBattleStruct->turnEffectsBattlerId++;
|
||||
|
||||
if (gDisableStructs[battler].tormentTimer > 0 && --gDisableStructs[battler].tormentTimer == 0)
|
||||
if (gDisableStructs[battler].tormentTimer == gBattleTurnCounter)
|
||||
{
|
||||
gBattleMons[battler].status2 &= ~STATUS2_TORMENT;
|
||||
BattleScriptExecute(BattleScript_TormentEnds);
|
||||
@ -1499,6 +1499,7 @@ static bool32 HandleEndTurnDynamax(u32 battler)
|
||||
|
||||
if (GetActiveGimmick(battler) == GIMMICK_DYNAMAX && gBattleStruct->dynamax.dynamaxTurns[battler] == gBattleTurnCounter)
|
||||
{
|
||||
gBattleScripting.battler = battler;
|
||||
UndoDynamax(battler);
|
||||
BattleScriptExecute(BattleScript_DynamaxEnds);
|
||||
effect = TRUE;
|
||||
|
||||
@ -18734,7 +18734,7 @@ void BS_TrySetTorment(void)
|
||||
&& !IsAbilityOnSide(gBattlerTarget, ABILITY_AROMA_VEIL))
|
||||
{
|
||||
gBattleMons[gBattlerTarget].status2 |= STATUS2_TORMENT;
|
||||
gDisableStructs[gBattlerTarget].tormentTimer = 3; // 3 turns excluding current turn
|
||||
gDisableStructs[gBattlerTarget].tormentTimer = gBattleTurnCounter + 3; // 3 turns excluding current turn
|
||||
gBattleCommunication[MULTISTRING_CHOOSER] = 3;
|
||||
gEffectBattler = gBattlerTarget;
|
||||
gBattlescriptCurrInstr = cmd->nextInstr;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user