mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 20:11:59 -08:00
Included game.getPermanentOrLKIBattlefield in adjustTargets
This commit is contained in:
parent
0f45dfe4fb
commit
5b158fc7f1
1 changed files with 1 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ public class CustodiSoulcaller extends CardImpl {
|
|||
if (ability.getClass().equals(AttacksTriggeredAbility.class)) {
|
||||
ability.getTargets().clear();
|
||||
CustodiSoulcallerWatcher watcher = (CustodiSoulcallerWatcher) game.getState().getWatchers().get(CustodiSoulcallerWatcher.class.getSimpleName());
|
||||
Permanent sourcePermanent = game.getPermanent(ability.getSourceId());
|
||||
Permanent sourcePermanent = game.getPermanentOrLKIBattlefield(ability.getSourceId());
|
||||
if (watcher != null && watcher.playersAttacked != null) {
|
||||
int xValue = watcher.getNumberOfAttackedPlayers(sourcePermanent.getControllerId());
|
||||
FilterCard filter = new FilterCard("creature card with converted mana cost " + xValue + " or less");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue