- Added scheme: Drench the Soil in Their Blood

- Archenemy schemes will only be played on pre-combat main phases.
This commit is contained in:
moomarc
2013-07-19 15:23:48 +00:00
parent bde583d381
commit fd63bda12a
3 changed files with 21 additions and 1 deletions

1
.gitattributes vendored
View File

@@ -2997,6 +2997,7 @@ res/cardsfolder/d/dregs_of_sorrow.txt svneol=native#text/plain
res/cardsfolder/d/dregscape_zombie.txt svneol=native#text/plain
res/cardsfolder/d/drekavac.txt svneol=native#text/plain
res/cardsfolder/d/drelnoch.txt svneol=native#text/plain
res/cardsfolder/d/drench_the_soil_in_their_blood.txt -text
res/cardsfolder/d/drift_of_phantasms.txt svneol=native#text/plain
res/cardsfolder/d/drift_of_the_dead.txt svneol=native#text/plain
res/cardsfolder/d/drifter_il_dal.txt svneol=native#text/plain

View File

@@ -0,0 +1,8 @@
Name:Drench the Soil in Their Blood
ManaCost:no cost
Types:Scheme
T:Mode$ SetInMotion | ValidCard$ Card.Self | Execute$ BloodyCombat | TriggerZones$ Command | TriggerDescription$ When you set this scheme in motion, after the main phase, there is an additional combat phase followed by an additional main phase. Creatures you control gain vigilance until end of turn.
SVar:BloodyCombat:DB$ AddPhase | ExtraPhase$ BeginCombat | FollowedBy$ ThisPhase | ConditionPhases$ Main1,Main2 | SubAbility$ MakeVigilant
SVar:MakeVigilant:DB$ PumpAll | ValidCards$ Creature.YouCtrl | KW$ Vigilance
SVar:Picture:http://www.cardforge.org/fpics/lq_schemes/drench_the_soil_in_their_blood.jpg
Oracle:When you set this scheme in motion, after the main phase, there is an additional combat phase followed by an additional main phase. Creatures you control gain vigilance until end of turn.

View File

@@ -295,7 +295,7 @@ public class PhaseHandler implements java.io.Serializable {
break;
case MAIN1:
if (this.getPlayerTurn().isArchenemy()) {
if (this.getPlayerTurn().isArchenemy() && this.isPreCombatMain()) {
this.getPlayerTurn().setSchemeInMotion();
}
break;
@@ -888,6 +888,17 @@ public class PhaseHandler implements java.io.Serializable {
return (this.nUpkeepsThisTurn == 1);
}
/**
* <p>
* isPreCombatMain.
* </p>
*
* @return a boolean.
*/
public final boolean isPreCombatMain() {
return (this.nCombatsThisTurn == 0);
}
private final static boolean DEBUG_PHASES = false;
public void startFirstTurn(Player goesFirst) {