• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Need Spell Deflection Skill

Status
Not open for further replies.
Level 2
Joined
Dec 25, 2007
Messages
16
I need a passive skill that deflects all spells that casted on a Hero that have the skill. Say I cast 'Finger of Death' to the Hero, the damage is nullified and the 'Finger of Death' is casted back to the caster by a dummy unit. I just don't know how to make it if it deflects various spells. Anyone challenged to make this skill?
 
u can make it but it really long and hard:

set ability being cast = ALILITY
create dummy
add ALILITY to dummy
order unit to (and then all posiblilities of spells in ur map) on casting unit
order unit to (and then all posiblilities of spells in ur map) on casting unit
order unit to (and then all posiblilities of spells in ur map) on casting unit
order unit to (and then all posiblilities of spells in ur map) on casting unit
order unit to (and then all posiblilities of spells in ur map) on casting unit
order unit to (and then all posiblilities of spells in ur map) on casting unit
order unit to (and then all posiblilities of spells in ur map) on casting unit
order unit to (and then all posiblilities of spells in ur map) on casting unit
order unit to (and then all posiblilities of spells in ur map) on casting unit
 
Level 2
Joined
Dec 25, 2007
Messages
16
That's crazy it could slow down like hell.
How if I put like:

[Trigger1]
Event - A Unit Ordered to Target a Unit

Condition - Target Unit of Order is UnitWithSkill

Action - Set AbilityOrder = Sting[Order of Ordered Unit]
Action - Set CastingUnit = Caster Unit


[Trigger2]
Event - Unit cast an ability

Condition - Target Unit is UnitWithSkill

Action - Set AbilityBeingCast = Casted Ability
Action - Add AbilityBeingCast to DummyUnit
Action - Order DummyUnit to AbilityOrder CastingUnit



Is it possible to do? I'll try it on my own first.
 
Status
Not open for further replies.
Top