mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 17:58:01 +00:00
Clean up
This commit is contained in:
@@ -2879,7 +2879,7 @@ public class ComputerUtil {
|
||||
// no life gain is not negative
|
||||
return false;
|
||||
} else if (Iterables.any(list, CardTraitPredicates.hasParam("AiLogic", "LoseLife"))) {
|
||||
// lose life is only negagive is the player can lose life
|
||||
// lose life is only negative is the player can lose life
|
||||
return player.canLoseLife();
|
||||
} else if (Iterables.any(list, CardTraitPredicates.hasParam("AiLogic", "LichDraw"))) {
|
||||
// if it would draw more cards than player has, then its negative
|
||||
|
||||
@@ -2375,7 +2375,6 @@ public class ComputerUtilCombat {
|
||||
repParams.put(AbilityKey.DamageSource, attacker);
|
||||
repParams.put(AbilityKey.DamageAmount, damage);
|
||||
repParams.put(AbilityKey.IsCombat, true);
|
||||
repParams.put(AbilityKey.Prevention, true);
|
||||
|
||||
List<ReplacementEffect> list = game.getReplacementHandler().getReplacementList(
|
||||
ReplacementType.DamageDone, repParams, ReplacementLayer.Other);
|
||||
|
||||
@@ -41,7 +41,6 @@ public enum AbilityKey {
|
||||
CounteredSA("CounteredSA"),
|
||||
CounterNum("CounterNum"),
|
||||
CounterMap("CounterMap"),
|
||||
CounterTable("CounterTable"),
|
||||
CounterType("CounterType"),
|
||||
Crew("Crew"),
|
||||
CumulativeUpkeepPaid("CumulativeUpkeepPaid"),
|
||||
@@ -103,8 +102,6 @@ public enum AbilityKey {
|
||||
Phase("Phase"),
|
||||
Player("Player"),
|
||||
PreventedAmount("PreventedAmount"),
|
||||
PreventMap("PreventMap"),
|
||||
Prevention("Prevention"),
|
||||
Produced("Produced"),
|
||||
Regeneration("Regeneration"),
|
||||
ReplacementEffect("ReplacementEffect"),
|
||||
|
||||
@@ -175,7 +175,6 @@ public class ReplacementHandler {
|
||||
final Card c = preList.get(crd);
|
||||
|
||||
for (final ReplacementEffect replacementEffect : c.getReplacementEffects()) {
|
||||
|
||||
// Use "CheckLKIZone" parameter to test for effects that care abut where the card was last (e.g. Kalitas, Traitor of Ghet
|
||||
// getting hit by mass removal should still produce tokens).
|
||||
Zone cardZone = "True".equals(replacementEffect.getParam("CheckSelfLKIZone")) ? game.getChangeZoneLKIInfo(c).getLastKnownZone() : game.getZoneOf(c);
|
||||
|
||||
Reference in New Issue
Block a user