mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 22:42:03 -08:00
* Norn's Annex - Fixed that the effect did not work if a planeswalker of the controller was attacked.
This commit is contained in:
parent
d42901d052
commit
ef1ee0adbf
3 changed files with 24 additions and 20 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue