- Fix issue with Targeting being cleared in certain Triggers (I didn't fully test this so if it breaks something else we should undo this changelist)

This commit is contained in:
jendave
2011-08-06 17:18:40 +00:00
parent 23de9d8527
commit 07eabba847
3 changed files with 12 additions and 14 deletions

View File

@@ -3283,22 +3283,14 @@ public class GameAction {
sa.setActivatingPlayer(AllZone.HumanPlayer);
if (sa.getPayCosts() != null){
Target_Selection ts = null;
if(skipTargeting)
{
ts = new Target_Selection(null, sa);
}
else
{
ts = new Target_Selection(sa.getTarget(),sa);
}
Target_Selection ts = new Target_Selection(sa.getTarget(),sa);
Cost_Payment payment = new Cost_Payment(sa.getPayCosts(), sa);
payment.changeCost();
SpellAbility_Requirements req = new SpellAbility_Requirements(sa, ts, payment);
req.setSkipStack(true);
req.fillRequirements();
req.fillRequirements(skipTargeting);
}
else{
ManaCost manaCost = new ManaCost(sa.getManaCost());