mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00: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…
Reference in a new issue