mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Added the AILogic "Fog" to AF Effect.
- Removed SVar:RemAIDeck:True from some cards.
This commit is contained in:
@@ -7,6 +7,7 @@ import forge.AllZone;
|
||||
import forge.AllZoneUtil;
|
||||
import forge.Card;
|
||||
import forge.CardList;
|
||||
import forge.CombatUtil;
|
||||
import forge.Command;
|
||||
import forge.ComputerUtil;
|
||||
import forge.Constant;
|
||||
@@ -208,9 +209,22 @@ public class AbilityFactoryEffect {
|
||||
if(phase.isPlayerTurn(AllZone.getComputerPlayer())
|
||||
|| phase.isAfter(Constant.Phase.DRAW)) {
|
||||
return false;
|
||||
} else {
|
||||
randomReturn = true;
|
||||
}
|
||||
randomReturn = true;
|
||||
} else if (logic.equals("Fog")) {
|
||||
if (AllZone.getPhase().isPlayerTurn(sa.getActivatingPlayer())) {
|
||||
return false;
|
||||
}
|
||||
if (!AllZone.getPhase().is(Constant.Phase.COMBAT_DECLARE_BLOCKERS_INSTANT_ABILITY)) {
|
||||
return false;
|
||||
}
|
||||
if (AllZone.getStack().size() != 0) {
|
||||
return false;
|
||||
}
|
||||
if (AllZone.getPhase().isPreventCombatDamageThisTurn()) {
|
||||
return false;
|
||||
}
|
||||
randomReturn = CombatUtil.lifeInDanger(AllZone.getCombat());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user