Fixed Curse of the Nightly Hunt

This commit is contained in:
Plopman 2013-04-05 18:57:49 +02:00
parent 528acab300
commit 0a670ded4a

View file

@ -96,8 +96,11 @@ class CurseOfTheNightlyHuntEffect extends RequirementEffect<CurseOfTheNightlyHun
@Override @Override
public boolean applies(Permanent permanent, Ability source, Game game) { public boolean applies(Permanent permanent, Ability source, Game game) {
if (source.getControllerId().equals(permanent.getControllerId())) { Permanent enchantment = game.getPermanent(source.getSourceId());
return true; if (enchantment != null && enchantment.getAttachedTo() != null) {
if (source.getControllerId().equals(enchantment.getAttachedTo())) {
return true;
}
} }
return false; return false;
} }