* Norn's Annex - Fixed that the effect did not work if a planeswalker of the controller was attacked.

This commit is contained in:
LevelX2 2015-05-11 15:00:54 +02:00 committed by Luna Skyrise
parent d42901d052
commit ef1ee0adbf
3 changed files with 24 additions and 20 deletions

View file

@ -139,12 +139,12 @@ public class ManaCostsImpl<T extends ManaCost> extends ArrayList<T> implements M
* @param ability
* @param game
* @param sourceId
* @param controllerId
* @param payingPlayerId
* @return true if the cost was paid
*/
public boolean payOrRollback(Ability ability, Game game, UUID sourceId, UUID controllerId) {
public boolean payOrRollback(Ability ability, Game game, UUID sourceId, UUID payingPlayerId) {
int bookmark = game.bookmarkState();
if (pay(ability, game, sourceId, controllerId, false)) {
if (pay(ability, game, sourceId, payingPlayerId, false)) {
game.removeBookmark(bookmark);
return true;
}

View file

@ -148,7 +148,16 @@ public class GameEvent implements Serializable {
COUNTER,
COUNTERED,
DECLARING_ATTACKERS, DECLARED_ATTACKERS,
DECLARE_ATTACKER, ATTACKER_DECLARED,
DECLARE_ATTACKER,
/* ATTACKER_DECLARED
targetId id of the defending player or planeswalker attacked
sourceId id of the attacking creature
playerId player defining the attacking creatures
amount not used for this event
flag not used for this event
*/
ATTACKER_DECLARED,
/* DECLARING_BLOCKERS
targetId attackerId