mirror of
https://github.com/magefree/mage.git
synced 2026-01-09 20:32:06 -08:00
Fix missing ProcessAction between the last mana being paid and the spell being cast. (#13396)
This is necessary so that, among other things, the Rain of Riches watcher can see that the last mana of a spell was a Treasure before the spell is cast - at which point it needs to already have Cascade.
This commit is contained in:
parent
ba397f3278
commit
a9bffe4d25
2 changed files with 1 additions and 3 deletions
|
|
@ -1346,6 +1346,7 @@ public abstract class PlayerImpl implements Player, Serializable {
|
|||
castEvent.setZone(fromZone);
|
||||
game.fireEvent(castEvent);
|
||||
if (spell.activate(game, allowedIdentifiers, noMana)) {
|
||||
game.processAction();
|
||||
GameEvent castedEvent = GameEvent.getEvent(GameEvent.EventType.SPELL_CAST,
|
||||
ability.getId(), ability, playerId, approvingObject);
|
||||
castedEvent.setZone(fromZone);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue