Implement [WHO] The Rani (#12369)

This commit is contained in:
grimreap124 2024-06-07 09:23:10 +10:00 committed by GitHub
parent af879be1d2
commit 976097e1e8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 152 additions and 0 deletions

View file

@ -0,0 +1,48 @@
package mage.game.permanent.token;
import mage.abilities.Ability;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.common.AttachEffect;
import mage.abilities.effects.common.combat.GoadAttachedEffect;
import mage.abilities.effects.common.continuous.BoostEnchantedEffect;
import mage.abilities.keyword.EnchantAbility;
import mage.constants.CardType;
import mage.constants.Outcome;
import mage.constants.SubType;
import mage.target.TargetPermanent;
import mage.target.common.TargetCreaturePermanent;
/**
* @author grimreap124
*/
public final class MarkOfTheRaniToken extends TokenImpl {
public MarkOfTheRaniToken() {
super(
"Mark of the Rani",
"red Aura enchantment token named Mark of the Rani attached to another target creature. That token has enchant creature and \"Enchanted creature gets +2/+2 and is goaded.\"");
cardType.add(CardType.ENCHANTMENT);
color.setRed(true);
subtype.add(SubType.AURA);
// Enchant creature
TargetPermanent auraTarget = new TargetCreaturePermanent();
Ability ability = new EnchantAbility(auraTarget);
ability.addTarget(auraTarget);
ability.addEffect(new AttachEffect(Outcome.BoostCreature));
this.addAbility(ability);
// Enchanted creature gets +2/+2 and is goaded.
ability = new SimpleStaticAbility(new BoostEnchantedEffect(2, 2));
ability.addEffect(new GoadAttachedEffect());
this.addAbility(ability);
}
private MarkOfTheRaniToken(final MarkOfTheRaniToken token) {
super(token);
}
public MarkOfTheRaniToken copy() {
return new MarkOfTheRaniToken(this);
}
}