mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 03:22:00 -08:00
[KHM] fixed Draugr Necromancer exiling controller's cards rather than opponent's (fixes #7452)
This commit is contained in:
parent
c1719d06d1
commit
b21e3e36a2
1 changed files with 4 additions and 3 deletions
|
|
@ -75,12 +75,13 @@ class DraugrNecromancerReplacementEffect extends ReplacementEffectImpl {
|
|||
public boolean replaceEvent(GameEvent event, Ability source, Game game) {
|
||||
Permanent permanent = ((ZoneChangeEvent) event).getTarget();
|
||||
Player controller = game.getPlayer(source.getControllerId());
|
||||
if (controller == null || permanent == null
|
||||
|| controller.hasOpponent(permanent.getControllerId(), game)) {
|
||||
if (controller == null
|
||||
|| permanent == null
|
||||
|| !controller.hasOpponent(permanent.getControllerId(), game)) {
|
||||
return false;
|
||||
}
|
||||
controller.moveCards(permanent, Zone.EXILED, source, game);
|
||||
Card card = game.getCard(permanent.getId());
|
||||
controller.moveCards(permanent, Zone.EXILED, source, game);
|
||||
card.addCounters(CounterType.ICE.createInstance(), source.getControllerId(), source, game);
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue