Hi,
I am currently working on an ability that is an anti-spell shield.
The spell should block incoming enemy spells (damage and status effects). After the shield has blocked 1 spell, the shield should be removed.
Any ideas how I could get this working?
I do not mind using triggers to get this spell to work, so far I have searched and found no suitable triggers for this spell to work.
Things I have tried:
-Behavior>Modification>Disabled all effects from all negative abilities that exist in my mod. (The effect applies when the spell shield drops. It's queued? No idea how to remove it from the queue)
-Behavior>Damage Response>Leach 1 health for every 1 spell damage applied to unit. (Damage is still applied)
There is no built-in support for a magic-immune state of some sort, the only way I know of would be to setup all your spells to support your spell block using validators, which is probably done easiest with a switch effect and a validator for each spell which should be affected, somewhat like this:
Ability cast -> Switch effect, checking for the Spell Block behavior via validator.
If target unit has no stacks of the spell block: -> Execute first effect of the ability as usual
If target has a stack: -> Remove one stack instead, don't execute the ability.
If you prefer a more generic solution at the cost of some compromises, you could make it block an instance of spell damage instead (easily done using a behavior with a damage response that removes itself instantly), but that won't block any secondary effects.
Thanks for the reply, I didn't use your solution though, because I have no idea how to use validators. I also found no tutorials on how to use them, but I had already given up on the spell. Thanks again.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi, I am currently working on an ability that is an anti-spell shield. The spell should block incoming enemy spells (damage and status effects). After the shield has blocked 1 spell, the shield should be removed.
Any ideas how I could get this working?
I do not mind using triggers to get this spell to work, so far I have searched and found no suitable triggers for this spell to work.
Things I have tried: -Behavior>Modification>Disabled all effects from all negative abilities that exist in my mod. (The effect applies when the spell shield drops. It's queued? No idea how to remove it from the queue) -Behavior>Damage Response>Leach 1 health for every 1 spell damage applied to unit. (Damage is still applied)
There is no built-in support for a magic-immune state of some sort, the only way I know of would be to setup all your spells to support your spell block using validators, which is probably done easiest with a switch effect and a validator for each spell which should be affected, somewhat like this:
If you prefer a more generic solution at the cost of some compromises, you could make it block an instance of spell damage instead (easily done using a behavior with a damage response that removes itself instantly), but that won't block any secondary effects.
Thanks for the reply, I didn't use your solution though, because I have no idea how to use validators. I also found no tutorials on how to use them, but I had already given up on the spell. Thanks again.