mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Some minor changes.
This commit is contained in:
parent
11fb2412cb
commit
1b45c997aa
2 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue