mirror of
https://github.com/correl/mage.git
synced 2025-01-13 03:00:10 +00:00
[KHM] small change to Vorinclex, Monstrous Raider to prevent modifying counters on cards not on the battlefield
This commit is contained in:
parent
ecd2ba588c
commit
af5331a9e4
1 changed files with 4 additions and 0 deletions
|
@ -85,6 +85,10 @@ class VorinclexMonstrousRaiderEffect extends ReplacementEffectImpl {
|
|||
|
||||
@Override
|
||||
public boolean applies(GameEvent event, Ability source, Game game) {
|
||||
if (game.getPlayer(event.getTargetId()) == null
|
||||
&& game.getState().getZone(event.getTargetId()) != Zone.BATTLEFIELD) {
|
||||
return false;
|
||||
}
|
||||
return source.isControlledBy(event.getPlayerId())
|
||||
|| game.getOpponents(event.getPlayerId()).contains(source.getControllerId());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue