Some minor changes.

This commit is contained in:
LevelX2 2015-02-27 18:08:31 +01:00
parent 11fb2412cb
commit 1b45c997aa
2 changed files with 5 additions and 0 deletions

View file

@ -28,6 +28,7 @@
package mage.sets.bornofthegods; package mage.sets.bornofthegods;
import java.util.UUID; import java.util.UUID;
import mage.MageObject;
import mage.abilities.Ability; import mage.abilities.Ability;
import mage.abilities.DelayedTriggeredAbility; import mage.abilities.DelayedTriggeredAbility;
import mage.abilities.effects.OneShotEffect; import mage.abilities.effects.OneShotEffect;
@ -162,6 +163,7 @@ class SearingBloodDelayedEffect extends OneShotEffect {
if (permanent != null) { if (permanent != null) {
Player player = game.getPlayer(permanent.getControllerId()); Player player = game.getPlayer(permanent.getControllerId());
if (player != null) { if (player != null) {
MageObject sourceObject = source.getSourceObject(game);
player.damage(3, source.getSourceId(), game, false, true); player.damage(3, source.getSourceId(), game, false, true);
return true; return true;
} }

View file

@ -1628,6 +1628,9 @@ public abstract class PlayerImpl implements Player, Serializable {
MageObject source = game.getPermanentOrLKIBattlefield(sourceId); MageObject source = game.getPermanentOrLKIBattlefield(sourceId);
if (source == null) { if (source == null) {
source = game.getObject(sourceId); source = game.getObject(sourceId);
if (source instanceof Card && !CardUtil.isPermanentCard((Card)source)) {
source = game.getLastKnownInformation(sourceId, Zone.STACK);
}
if (source instanceof Spell) { if (source instanceof Spell) {
sourceControllerId = ((Spell) source).getControllerId(); sourceControllerId = ((Spell) source).getControllerId();
} else { } else {