mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
Timing fix
This commit is contained in:
@@ -431,6 +431,7 @@ public class PhaseHandler implements java.io.Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
nUpkeepsThisTurn = 0;
|
nUpkeepsThisTurn = 0;
|
||||||
|
nCombatsThisTurn = 0;
|
||||||
nMain2sThisTurn = 0;
|
nMain2sThisTurn = 0;
|
||||||
game.getStack().resetMaxDistinctSources();
|
game.getStack().resetMaxDistinctSources();
|
||||||
|
|
||||||
@@ -479,10 +480,6 @@ public class PhaseHandler implements java.io.Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
switch (phase) {
|
switch (phase) {
|
||||||
case UNTAP:
|
|
||||||
nCombatsThisTurn = 0;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case UPKEEP:
|
case UPKEEP:
|
||||||
for (Card c : game.getCardsIncludePhasingIn(ZoneType.Battlefield)) {
|
for (Card c : game.getCardsIncludePhasingIn(ZoneType.Battlefield)) {
|
||||||
c.getDamageHistory().setNotAttackedSinceLastUpkeepOf(playerTurn);
|
c.getDamageHistory().setNotAttackedSinceLastUpkeepOf(playerTurn);
|
||||||
|
|||||||
@@ -330,7 +330,7 @@ public class SpellAbilityRestriction extends SpellAbilityVariables {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this.getFirstCombatOnly()) {
|
if (this.getFirstCombatOnly()) {
|
||||||
if (game.getPhaseHandler().getNumCombat() > 1) {
|
if (game.getPhaseHandler().getNumCombat() > (game.getPhaseHandler().inCombat() ? 1 : 0)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user