mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
[SPM] Implement Spiders-Man, Heroic Horde
This commit is contained in:
parent
482c7a9443
commit
0a4f2be833
3 changed files with 80 additions and 0 deletions
|
|
@ -0,0 +1,29 @@
|
|||
package mage.abilities.condition.common;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.condition.Condition;
|
||||
import mage.abilities.keyword.WebSlingingAbility;
|
||||
import mage.game.Game;
|
||||
import mage.util.CardUtil;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public enum WebSlingingCondition implements Condition {
|
||||
THEY("they were");
|
||||
private final String message;
|
||||
|
||||
WebSlingingCondition(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
return CardUtil.checkSourceCostsTagExists(game, source, WebSlingingAbility.WEB_SLINGING_ACTIVATION_VALUE_KEY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return message + " cast using web-slinging";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue