Fixed Soul-Scar Mage.  Bug
@@ -114,8 +114,14 @@ class SoulScarMageDamageReplacementEffect extends ReplacementEffectImpl {
@Override
public boolean applies(GameEvent event, Ability source, Game game) {
- boolean weControlSource = game.getControllerId(event.getSourceId()).equals(source.getControllerId());
+ UUID sourceControllerId = game.getControllerId(event.getSourceId());
+ UUID targetControllerId = game.getControllerId(event.getTargetId());
+ UUID controllerId = source.getControllerId();
+ boolean weControlSource = controllerId == sourceControllerId;
+ boolean opponentControlsTarget = game.getOpponents(sourceControllerId).contains(targetControllerId);
boolean isNoncombatDamage = !((DamageCreatureEvent) event).isCombatDamage();
- return weControlSource && isNoncombatDamage;
+ return weControlSource
+ && isNoncombatDamage
+ && opponentControlsTarget;
}
}
