Class SetCardSpell

All Implemented Interfaces:
Serializable, HasDesc<SpellDesc>

public final class SetCardSpell extends RevertableSpell
Sets the target Card's Attribute.CARD_ID or Attribute.AURA_CARD_ID to the card ID specified in SpellArg.CARD. If a SpellArg.SECONDARY_TARGET is specified, the target is instead the source of the card ID: the target's card ID will be copied to the secondary target argument.

This spell does not put the enchantments, like triggers and auras, into play from the newly converted card ID.

This spell is a RevertableSpell, so it is suitable for use in auras.

For example, to set the enemy's hero power's card to yours:

     {
         "class": "SetCardSpell",
         "secondaryTarget": "ENEMY_HERO_POWER",
         "target": "FRIENDLY_HERO_POWER"
     }
 
See Also:
  • Constructor Details

    • SetCardSpell

      public SetCardSpell()
  • Method Details