Changed spDamageTgt to include TgtOpp.

This commit is contained in:
jendave
2011-08-06 03:07:22 +00:00
parent b0a9ebcb54
commit c2e943b423

View File

@@ -1483,6 +1483,7 @@ public class CardFactory implements NewConstants {
final boolean TgtCreature[] = {false}; final boolean TgtCreature[] = {false};
final boolean TgtPlayer[] = {false}; final boolean TgtPlayer[] = {false};
final boolean TgtCP[] = {false}; final boolean TgtCP[] = {false};
final boolean TgtOpp[] = {false};
if (k[0].contains("CP")) if (k[0].contains("CP"))
TgtCP[0] = true; TgtCP[0] = true;
@@ -1490,6 +1491,8 @@ public class CardFactory implements NewConstants {
TgtPlayer[0] = true; TgtPlayer[0] = true;
else if (k[0].contains("C")) else if (k[0].contains("C"))
TgtCreature[0] = true; TgtCreature[0] = true;
else if (k[0].contains("Opp"))
TgtOpp[0] = true;
// how much damage // how much damage
final int NumDmg[] = {-1}; final int NumDmg[] = {-1};
@@ -1625,10 +1628,10 @@ public class CardFactory implements NewConstants {
} }
} }
if (TgtPlayer[0] == true) if (TgtPlayer[0] == true || TgtOpp[0] == true)
{ {
setTargetPlayer(Constant.Player.Human); setTargetPlayer(Constant.Player.Human);
return true; //shouldTgtP(); return true;
} }
if (TgtCreature[0] == true) if (TgtCreature[0] == true)
@@ -1637,7 +1640,7 @@ public class CardFactory implements NewConstants {
if (c != null) if (c != null)
{ {
setTargetCard(c); setTargetCard(c);
return c != null; return true;
} }
} }
@@ -1648,6 +1651,9 @@ public class CardFactory implements NewConstants {
{ {
damage = getNumDamage(); damage = getNumDamage();
String tgtP = new String(); String tgtP = new String();
if (TgtOpp[0] == true)
setTargetPlayer(AllZone.GameAction.getOpponent(card.getController()));
if(getTargetCard() != null) if(getTargetCard() != null)
{ {