mirror of
https://github.com/magefree/mage.git
synced 2026-01-25 04:39:18 -08:00
* Deflecting Palm - Fixed that damage dealing did not work if the source was a spell.
This commit is contained in:
parent
a3505b6dba
commit
08b26ae57a
4 changed files with 123 additions and 3 deletions
|
|
@ -40,6 +40,7 @@ import mage.constants.Rarity;
|
|||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.game.stack.Spell;
|
||||
import mage.players.Player;
|
||||
import mage.target.TargetSource;
|
||||
|
||||
|
|
@ -112,6 +113,8 @@ class DeflectingPalmEffect extends PreventionEffectImpl {
|
|||
objectControllerId = ((Permanent) damageDealingObject).getControllerId();
|
||||
} else if (damageDealingObject instanceof Ability) {
|
||||
objectControllerId = ((Ability) damageDealingObject).getControllerId();
|
||||
} else if (damageDealingObject instanceof Spell) {
|
||||
objectControllerId = ((Spell) damageDealingObject).getControllerId();
|
||||
}
|
||||
if (objectControllerId != null) {
|
||||
Player objectController = game.getPlayer(objectControllerId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue