change isValidTarget to follow style of MagicPermanent

master
melvin 2012-10-13 11:30:09 +08:00
parent 1e7e035357
commit 318a4a13cb
1 changed files with 5 additions and 1 deletions

View File

@ -519,7 +519,11 @@ public class MagicPlayer implements MagicTarget {
@Override
public boolean isValidTarget(final MagicSource source) {
return source.getController() == this || !hasAbility(MagicAbility.Hexproof);
// Can't be the target of spells or abilities your opponents controls.
if (hasAbility(MagicAbility.Hexproof) && source.getController() != this) {
return false;
}
return true;
}
public void incDrawnCards() {