HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Let amulet of spell shield ignore a certain spell?

08-11-2007, 07:55 AM#1
xanthous
I have a custom spell that issues the order string "frostnova". The problem is, I don't want the target to block this spell (suppose the target has the amulet of spell shield). Is it possible to let the amulet of spell shield NOT block a specific spell?

I need help. Any suggestions are welcome. Thanks.
08-11-2007, 08:02 AM#2
Histenchist
You could try to disable (remove) the spell shield for the target unit for a short time!?
08-11-2007, 02:45 PM#3
xanthous
Yes, but if I disable/enable the spell shield, I think it would always reset the cooldown of the spell shield. Is there any way to avoid that situation?

Thanks!
08-11-2007, 02:54 PM#4
IvanDaVile
doom disables all spells, even passivs, and doesnt reset cooldown, but it stops channeling and triggers spell shield
08-11-2007, 10:03 PM#5
ChaosWolfs
Remove the spell shield from the hero, let frost nova cast on it, and then replace the spell shield.

Trigger:
Collapse Events
Unit - A unit Begins casting an ability
Collapse Conditions
(Ability being cast) Equal to Frost Nova
Collapse Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
((Targeted unit) has an item of type Amulet of Spell Shield) Equal to True
Collapse Then - Actions
Collapse For each (Integer A) from 1 to 6, do (Actions)
Collapse Loop - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Amulet of Spell Shield Equal to (Item-type of (Item carried by (Targeted unit) in slot (Integer A)))
Collapse Then - Actions
Set RememberSlot = (Integer A)
Else - Actions
Item - Remove (Item carried by (Targeted unit) of type Amulet of Spell Shield)
Wait 0.50 seconds
Hero - Create Amulet of Spell Shield and give it to (Targeted unit)
Unit - Order (Targeted unit) to move (Last created item) to inventory slot RememberSlot
Else - Actions

Something like this should work, but I haven't tested this myself so there may be a user error.

Now the owner of the targeted hero might notice the Amulet of Spell Shield missing in that 0.50 seconds. You could fix this by: recreate a duplicate Amulet of Spell Shield (with no abilities), replace the real Amulet of Spell Shield with the Fake Amulet, wait 0.5 seconds, and replace the Fake Amulet with the real amulet. That way, he won't notice the disappearance.

Although, during that 0.5 seconds, the amulet of spell shield will not work. So I suggest playing with it and finding the smallest working time.
08-11-2007, 11:51 PM#6
TaintedReality
If the ability you're using is Channel, you can check Universal Spell in the Options field. That should bypass both physical and magical immunities. I haven't actually tried it myself, but it should work.
08-12-2007, 04:36 AM#7
xanthous
Thanks very much! But one last question, what if the spell shield WAS cooling down at the moment being casted? I don't want the cooldown timer to reset, but I think remove/add does reset it.
08-12-2007, 06:13 AM#8
TaintedReality
Quote:
what if the spell shield WAS cooling down at the moment being casted?

What's that have to do with anything =P. Since the spell is bypassing the spell shield it shouldn't matter whether it's cooling down or not.
08-12-2007, 09:38 AM#9
xanthous
The spell should bypass the spell shield when it is cooling down (for example: 15 secs left), but now another trigger resets cooldown of the spell shield everytime the spell is casted. I want the cooldown timer of the target to remain uneffected (15 secs left, instead of 0 secs).

How do I make the spell not reset the spell shield when it is cooling down?
Thanks
08-12-2007, 06:18 PM#10
TaintedReality
I'm not completely sure what you're saying. You say you have a trigger that resets the cooldown every time the spell is cast, but you don't want the cooldown to be reset. So, couldn't you just remove the trigger?
08-13-2007, 12:26 AM#11
xanthous
Well, the other trigger (as posted by ChaosWolfs) is to let the spell bypass the spell shield when it is not cooling down.
08-13-2007, 01:39 AM#12
Anitarf
I'm not sure that a spell's cooldown is reset if you remove and re-add it with triggers. Have you tested this?
08-14-2007, 02:10 AM#13
ChaosWolfs
If the cooldown is reseting (with my triggers), then try dropping the item instead or giving it to a dummy. When the spell is done casting, give the item back to the hero.
08-14-2007, 03:50 AM#14
Conquestor
Uhh.... If the unit doesn't take damage from the spell (Just check HP's), hit it with a dummy unit...?

Or am I missing something?
08-17-2007, 07:41 PM#15
ChaosWolfs
I decided to take a closer look at it.

Anything you do to the item does reset the cooldown.
If someone casts Storm Bolt on you, wait 25 seconds, drop it, and pick it back up, you will end up waiting another 40 seconds cause the cooldown resets.

The only way I can think of is to track the cooldown through triggers. You can easily do this both in GUI and Jass.