[OTJ] Implementing "commit crime" mechanic (#11859)

* [OTJ] Implement Oko the Ringleader

* [OTJ] Implement Duelist of the Mind

* update implementation of crime mechanic to match new info

* [OTJ] Implement Marauding Sphinx

* [OTJ] Implement Hardbristle Bandit

* [OTJ] Implement Intimidation Campaign

* [OTJ] Implement Freestrider Lookout

* add initial test

* add more tests

* apply requested changes

* applied requested changes

* fix verify failure
This commit is contained in:
Evan Kranzler 2024-03-28 11:19:27 -04:00 committed by GitHub
parent 6d7f42e5d7
commit fa0f9f3d00
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 896 additions and 2 deletions

View file

@ -0,0 +1,32 @@
package mage.abilities.condition.common;
import mage.abilities.Ability;
import mage.abilities.condition.Condition;
import mage.abilities.hint.ConditionHint;
import mage.abilities.hint.Hint;
import mage.game.Game;
import mage.watchers.common.CommittedCrimeWatcher;
/**
* requires CommittedCrimeWatcher
*
* @author TheElk801
*/
public enum CommittedCrimeCondition implements Condition {
instance;
private static final Hint hint = new ConditionHint(instance, "You committed a crime this turn");
public static Hint getHint() {
return hint;
}
@Override
public boolean apply(Game game, Ability source) {
return CommittedCrimeWatcher.checkCriminality(game, source);
}
@Override
public String toString() {
return "you've committed a crime this turn";
}
}