mirror of
https://github.com/correl/mage.git
synced 2025-01-11 19:13:02 +00:00
AI didn't properly know what to do with the used Target class.
This commit is contained in:
parent
1f7a21218c
commit
7698581116
1 changed files with 2 additions and 1 deletions
|
@ -42,6 +42,7 @@ import mage.game.permanent.Permanent;
|
|||
import mage.players.Player;
|
||||
import mage.target.TargetPermanent;
|
||||
import mage.target.TargetPlayer;
|
||||
import mage.target.common.TargetControlledPermanent;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -94,7 +95,7 @@ class ConsumingVaporsEffect extends OneShotEffect<ConsumingVaporsEffect> {
|
|||
Player player = game.getPlayer(source.getTargets().getFirstTarget());
|
||||
Player controller = game.getPlayer(source.getControllerId());
|
||||
filter.setTargetController(TargetController.YOU);
|
||||
TargetPermanent target = new TargetPermanent(1, 1, filter, false);
|
||||
TargetControlledPermanent target = new TargetControlledPermanent(1, 1, filter, false);
|
||||
|
||||
//A spell or ability could have removed the only legal target this player
|
||||
//had, if thats the case this ability should fizzle.
|
||||
|
|
Loading…
Reference in a new issue