* Ward of Bones - Fixed some bugs.

This commit is contained in:
LevelX2 2014-07-26 15:00:09 +02:00
parent ecc6295638
commit db76a7a8c0

View file

@ -32,7 +32,6 @@ import mage.MageObject;
import mage.abilities.Ability;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.ContinuousRuleModifiyingEffectImpl;
import mage.abilities.effects.ReplacementEffectImpl;
import mage.cards.Card;
import mage.cards.CardImpl;
import mage.constants.CardType;
@ -109,7 +108,7 @@ class WardOfBonesEffect extends ContinuousRuleModifiyingEffectImpl {
if (event.getType() == GameEvent.EventType.PLAY_LAND
|| event.getType() == GameEvent.EventType.CAST_SPELL
&& game.getOpponents(source.getControllerId()).contains(event.getPlayerId())) {
final Card card = game.getCard(event.getTargetId());
final Card card = game.getCard(event.getSourceId());
final Player opponent = game.getPlayer(event.getPlayerId());
if (card == null || opponent == null) {
return false;