- Joined
- Jul 29, 2008
- Messages
- 9,824
This seems like it should be so so so simple. Yet it doesn't work.
I'm using the OG Anti-Magic Shell (the one that imparts full magic immunity, not the one with 'shield life') as the base for a similar custom ability. Most of the important fields are the same, the ability functions properly with allies & deals damage to enemy summoned units.
However, targeting enemy units gives them the 'AMS' too, which I definitely do not want. I figured it would be as simple as removing the buff... But it simply does not work.
(I have already been recommended to use a 0-sec timer and/or a set of dummy-casted abilities to accomplish this, which I will probably end up doing. But I wanted to see if there was any insight from the Hive about "unremovable buffs"?)
I'm using the OG Anti-Magic Shell (the one that imparts full magic immunity, not the one with 'shield life') as the base for a similar custom ability. Most of the important fields are the same, the ability functions properly with allies & deals damage to enemy summoned units.
However, targeting enemy units gives them the 'AMS' too, which I definitely do not want. I figured it would be as simple as removing the buff... But it simply does not work.
Code:
Poultice
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Poultice (OG Anti-magic Shell)
((Target unit of ability being cast) belongs to an enemy of (Owner of (Casting unit))) Equal to True
Actions
Unit - Remove Poultice buff from (Target unit of ability being cast)
(I have already been recommended to use a 0-sec timer and/or a set of dummy-casted abilities to accomplish this, which I will probably end up doing. But I wanted to see if there was any insight from the Hive about "unremovable buffs"?)