Warcraft III resources & community, 2003–2006 · archived

Please help with making this spell

3 posts
#1

Please help with making this spell

Hi, just wondering if anyone can help me with a spell called omni-slash, this ability has been made several times, but each time i find a new one i discover that it actually attacks your allies aswell as enemies, so i would like someone to hlep me fix the problem of it attacking allies.
#2
Can you tell us what it does?
#3
The problem is that the spells probably didn't specify that the targeted units were enemies of the caster. All you have to do is to add an if/then/else funtion to correct that and check for if the unit is invul/dead/alive/close enough/an enemy/a structure etc.

Use "Picked unit is alive equal to true (boolean)" "and" "owner of picked unit equal to random player from enemies of owner of [your casting unit]" and a bunch of "or" functions to check for all of the rest


Hope this helps you