mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Changed spDamageTgt to include TgtOpp.
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user