mirror of
https://github.com/correl/mage.git
synced 2025-01-13 11:01:58 +00:00
Fix Rite of Belzenlok token not damaging its controller
This commit is contained in:
parent
e86791cf44
commit
c91e56b937
1 changed files with 4 additions and 3 deletions
|
@ -21,6 +21,7 @@ import mage.filter.predicate.mageobject.CardTypePredicate;
|
|||
import mage.filter.predicate.permanent.AnotherPredicate;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.players.Player;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -94,9 +95,9 @@ class BelzenlokDemonTokenEffect extends OneShotEffect {
|
|||
if (otherCreatures > 0) {
|
||||
new SacrificeControllerEffect(filter, 1, "").apply(game, source);
|
||||
} else {
|
||||
Permanent permanent = game.getPermanentOrLKIBattlefield(source.getSourceId());
|
||||
if (permanent != null) {
|
||||
permanent.damage(6, permanent.getId(), game, false, true);
|
||||
Player controller = game.getPlayer(source.getControllerId());
|
||||
if (controller != null) {
|
||||
controller.damage(6, source.getSourceId(), game, false, true);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue