Spell Question - Is there a spell?

Status
Not open for further replies.
Level 5
Joined
Jul 17, 2006
Messages
145
Are there any (passive) spells that do something when a unit casts a spell nearby? if not what would my event and conditions be for a trigger that activates when a unit casts a spell within a 400 AoE of a unit with the "special ability"
 
Something like Mana Flare? Thats not really passive though.... make a custom aura with a custom buff then:

Event: A unit begins finishes casting a spell,
Conditions: (Triggering Unit) has a Buff equal to (Buff emitted from your custom Aura)
Actions: Whatever you want

I checked teh trigger editor and those are real conditions you can use so the trigger "should" work if you don't mess up on the Actions. GL and tell me if this works. I would show an actual trigger script but I don't know what button to press to get a picture of triggers in, sry.
 
Thanks a lot :D

btw its [ trigger ] [ /trigger ] I think


EDIT:
lol crap. I want the casting unit to be damaged by the unit with the aura, but theres no real way to do that >_>. I cant define witch unit has the aura. (or can i?) help please :/
 
Last edited:
>_> but who would get the gold/credit from the kill? which player would own the dummy unit? :/ if i knew that i could just use the unit that had the buff lol
 
If you don't want it to be MUI, just create a trigger like:
Event - Unit learns a skill
Cond - Learned skill == <your aura>
Actions - Set AuraOwner = Triggering Unit

The second trigger:
Event - Unit starts the effect of an ability
Cond - Triggering Unit has <aura buff>
Action - Cause AuraOwner to damage Triggering unit ...
 
....dosent help much
Jass MUI spells are MUI because it contains all variables within itself.
i dont see how i can refrence the unit that had the ability that gave off the buff. if i can, which im hoping i can, i posted here so someone would tell me how. >_>
I was planning on making this trigger in JASS anyways.
 
Status
Not open for further replies.
Back
Top