mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
*Added FatefulHour trigger parameter.
This commit is contained in:
@@ -343,6 +343,13 @@ public abstract class Trigger extends TriggerReplacementBase {
|
|||||||
* @return a boolean.
|
* @return a boolean.
|
||||||
*/
|
*/
|
||||||
public final boolean requirementsCheck() {
|
public final boolean requirementsCheck() {
|
||||||
|
if(this.getMapParams().containsKey("FatefulHour")) {
|
||||||
|
if(this.getMapParams().get("FatefulHour").equals("True")
|
||||||
|
&& !(this.getHostCard().getController().getLife() <= 5)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (this.getMapParams().containsKey("Metalcraft")) {
|
if (this.getMapParams().containsKey("Metalcraft")) {
|
||||||
if (this.getMapParams().get("Metalcraft").equals("True")
|
if (this.getMapParams().get("Metalcraft").equals("True")
|
||||||
&& !this.getHostCard().getController().hasMetalcraft()) {
|
&& !this.getHostCard().getController().hasMetalcraft()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user