forked from External/mage
Fixed wrong targetId in CAST_SPELL, fixed miss code from 7b7bbcadd6;
This commit is contained in:
parent
a0e046bf70
commit
261f32d9b9
5 changed files with 48 additions and 26 deletions
|
|
@ -302,9 +302,12 @@ public abstract class AbilityImpl implements Ability {
|
|||
String announceString = handleOtherXCosts(game, controller);
|
||||
|
||||
// For effects from cards like Void Winnower x costs have to be set
|
||||
if (this.getAbilityType() == AbilityType.SPELL
|
||||
&& game.replaceEvent(GameEvent.getEvent(GameEvent.EventType.CAST_SPELL_LATE, this.getId(), this, getControllerId()), this)) {
|
||||
return false;
|
||||
if (this.getAbilityType() == AbilityType.SPELL) {
|
||||
GameEvent castEvent = GameEvent.getEvent(GameEvent.EventType.CAST_SPELL_LATE, this.getId(), this, getControllerId());
|
||||
castEvent.setZone(game.getState().getZone(CardUtil.getMainCardId(game, sourceId)));
|
||||
if (game.replaceEvent(castEvent, this)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
handlePhyrexianManaCosts(game, controller);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue