mirror of
https://github.com/correl/mage.git
synced 2025-01-13 03:00:10 +00:00
* Brutal Hordechief - Fixed a bug that prevented controller from making block decisions.
This commit is contained in:
parent
eac674f69e
commit
254d057218
3 changed files with 23 additions and 15 deletions
|
@ -150,6 +150,17 @@ class BrutalHordechiefReplacementEffect extends ReplacementEffectImpl {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean checksEventType(GameEvent event, Game game) {
|
||||||
|
return event.getType() == GameEvent.EventType.DECLARING_BLOCKERS;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean applies(GameEvent event, Ability source, Game game) {
|
||||||
|
Player controller = game.getPlayer(source.getControllerId());
|
||||||
|
return controller != null && controller.hasOpponent(event.getPlayerId(), game);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean replaceEvent(GameEvent event, Ability source, Game game) {
|
public boolean replaceEvent(GameEvent event, Ability source, Game game) {
|
||||||
Player blockController = game.getPlayer(source.getControllerId());
|
Player blockController = game.getPlayer(source.getControllerId());
|
||||||
|
@ -159,15 +170,4 @@ class BrutalHordechiefReplacementEffect extends ReplacementEffectImpl {
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean checksEventType(GameEvent event, Game game) {
|
|
||||||
return event.getType() == GameEvent.EventType.DECLARING_BLOCKERS;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean applies(GameEvent event, Ability source, Game game) {
|
|
||||||
// this won't work correctly if coop formats are supported someday
|
|
||||||
return event.getPlayerId().equals(source.getSourceId());
|
|
||||||
}
|
|
||||||
}
|
}
|
|
@ -59,7 +59,6 @@ public class AshcloudPhoenix extends CardImpl {
|
||||||
this.expansionSetCode = "KTK";
|
this.expansionSetCode = "KTK";
|
||||||
this.subtype.add("Phoenix");
|
this.subtype.add("Phoenix");
|
||||||
|
|
||||||
this.color.setRed(true);
|
|
||||||
this.power = new MageInt(4);
|
this.power = new MageInt(4);
|
||||||
this.toughness = new MageInt(1);
|
this.toughness = new MageInt(1);
|
||||||
|
|
||||||
|
|
|
@ -109,7 +109,16 @@ public class GameEvent {
|
||||||
COUNTER, COUNTERED,
|
COUNTER, COUNTERED,
|
||||||
DECLARING_ATTACKERS, DECLARED_ATTACKERS,
|
DECLARING_ATTACKERS, DECLARED_ATTACKERS,
|
||||||
DECLARE_ATTACKER, ATTACKER_DECLARED,
|
DECLARE_ATTACKER, ATTACKER_DECLARED,
|
||||||
DECLARING_BLOCKERS, DECLARED_BLOCKERS,
|
|
||||||
|
/* DECLARING_BLOCKERS
|
||||||
|
targetId attackerId
|
||||||
|
sourceId not used for this event
|
||||||
|
playerId attackerId
|
||||||
|
amount not used for this event
|
||||||
|
flag not used for this event
|
||||||
|
*/
|
||||||
|
DECLARING_BLOCKERS,
|
||||||
|
DECLARED_BLOCKERS,
|
||||||
DECLARE_BLOCKER, BLOCKER_DECLARED,
|
DECLARE_BLOCKER, BLOCKER_DECLARED,
|
||||||
CREATURE_BLOCKED,
|
CREATURE_BLOCKED,
|
||||||
SEARCH_LIBRARY, LIBRARY_SEARCHED,
|
SEARCH_LIBRARY, LIBRARY_SEARCHED,
|
||||||
|
|
Loading…
Reference in a new issue