Skip to content

Trouble with a custom spell #371

Open
@Watermelon86

Description

@Watermelon86

I've been working on implementing some custom cards that help make a control hunter archetype, but one of the spells is giving me issues.

image

I wanted it to work sort of like Stampede and Lock and Load as a trigger effect that lasts one turn, but instead of adding cards to your hand, it would turn your removal spells into mini board clears.

{
"name": "Scatter Shot",
"baseManaCost": 2,
"type": "SPELL",
"heroClass": "HUNTER",
"rarity": "EPIC",
"description": "Whenever you cast a spell on a minion this turn, cast a copy of it on adjacent minions as well.",
"targetSelection": "NONE",
"spell": {
"class": "AddSpellTriggerSpell",
"target": "FRIENDLY_PLAYER",
"trigger": {
"eventTrigger": {
"class": "SpellCastedTrigger",
"sourcePlayer": "SELF",
"targetEntityType": "MINION"
},
"spell": {
"class": "RecastSpell",
"target": "ADJACENT_MINIONS",
"card": "PENDING_CARD"
},
"oneTurn": true
}
},
"collectible": true,
"set": "CUSTOM",
"fileFormatVersion": 1
}

Whenever I try to cast a targeted spell on a minion the turn I play this, the entire game crashes.
I think the issue is that it's trying to cast copies of the copied spells in a never ending loop.

Any ideas on how to fix this are appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions