mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 09:48:02 +00:00
remove "AttackedPlayerWhoAttackedYouLastTurn" condition
This commit is contained in:
@@ -384,25 +384,6 @@ public abstract class Trigger extends TriggerReplacementBase {
|
||||
this.getHostCard().getController(), this.getHostCard(), null)) {
|
||||
return false;
|
||||
}
|
||||
} else if ("AttackedPlayerWhoAttackedYouLastTurn".equals(condition)) {
|
||||
GameEntity attacked = (GameEntity) runParams.get(AbilityKey.Attacked);
|
||||
if (attacked == null) {
|
||||
// Check "Defender" too because once triggering objects are set on TriggerAttacks, the value of Attacked
|
||||
// ends up being in Defender at that point.
|
||||
attacked = (GameEntity) runParams.get(AbilityKey.DefendingPlayer);
|
||||
}
|
||||
Player attacker = this.getHostCard().getController();
|
||||
|
||||
boolean valid = false;
|
||||
if (game.getPlayersAttackedLastTurn().containsKey(attacked)) {
|
||||
if (game.getPlayersAttackedLastTurn().get(attacked).contains(attacker)) {
|
||||
valid = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (attacked == null || !valid) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user