Skip to main content

create_permanent_spell

Function create_permanent_spell 

Source
pub fn create_permanent_spell(
    card_id: CardId,
    is_creature: bool,
    player: PlayerId,
) -> SpellAbility
Expand description

Create a SpellAbility configured as a permanent spell. Mirrors Java’s SpellPermanent constructor.

  • card_id: The card being cast.
  • is_creature: If true, the API type is PermanentCreature; otherwise PermanentNoncreature.
  • player: The casting player.