mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- Added Rogue Kavu (using "Whenever CARDNAME attacks alone, it gets +2/+0 until end of turn" keyword, hmm maybe I should've expanded beached as' "Whenever" keyword instead).
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
Rogue Kavu
|
||||
1 R
|
||||
Creature Kavu
|
||||
no text
|
||||
1/1
|
||||
Whenever CARDNAME attacks alone, it gets +2/+0 until end of turn.
|
||||
|
||||
Niv-Mizzet, the Firemind
|
||||
2 U U R R
|
||||
Legendary Creature Dragon Wizard
|
||||
|
||||
@@ -971,7 +971,42 @@ public class CombatUtil {
|
||||
AllZone.Stack.add(ability);
|
||||
}//Raging Ravine
|
||||
|
||||
//
|
||||
if ((AllZone.Combat.getAttackers().length + AllZone.pwCombat.getAttackers().length) == 1)
|
||||
{
|
||||
if (c.getKeyword().contains("Whenever this creature attacks alone, it gets +2/+0 until end of turn") ||
|
||||
c.getKeyword().contains("Whenever CARDNAME attacks alone, it gets +2/+0 until end of turn"))
|
||||
{
|
||||
final Card charger = c;
|
||||
Ability ability2 = new Ability(c, "0") {
|
||||
@Override
|
||||
public void resolve() {
|
||||
|
||||
final Command untilEOT = new Command() {
|
||||
private static final long serialVersionUID = -6039349249335745813L;
|
||||
|
||||
public void execute() {
|
||||
if(AllZone.GameAction.isCardInPlay(charger)) {
|
||||
charger.addTempAttackBoost(-2);
|
||||
charger.addTempDefenseBoost(0);
|
||||
}
|
||||
}
|
||||
};//Command
|
||||
|
||||
|
||||
if(AllZone.GameAction.isCardInPlay(charger)) {
|
||||
charger.addTempAttackBoost(2);
|
||||
charger.addTempDefenseBoost(0);
|
||||
|
||||
AllZone.EndOfTurn.addUntil(untilEOT);
|
||||
}
|
||||
}//resolve
|
||||
|
||||
};//ability
|
||||
|
||||
ability2.setStackDescription(c.getName() + " - attacks alone and gets +2/+0 until EOT.");
|
||||
AllZone.Stack.add(ability2);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(c.getName().equals("Zhang He, Wei General") && !c.getCreatureAttackedThisCombat()) {
|
||||
|
||||
Reference in New Issue
Block a user