mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
*Corrected some scripts etbCounters->etbCounter.
*Added ThisTurnCast and ThisTurnNotCast to special conditions. See Hotheaded Giant for example. *Added Dream Thief Goblin Cohort Hotheaded Giant Mogg Conscripts Soul Reap
This commit is contained in:
@@ -1580,6 +1580,18 @@ public final class GameActionUtil {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (specialConditions.contains("ThisTurnCast")) {
|
||||
String valid = specialConditions.split(" ")[1];
|
||||
if(CardUtil.getThisTurnCast(valid, sourceCard).size() == 0) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if(specialConditions.contains("ThisTurnNotCast")) {
|
||||
String valid = specialConditions.split(" ")[1];
|
||||
if(CardUtil.getThisTurnCast(valid, sourceCard).size() != 0) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user