• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Dealing extra damage for casting with stealth

Status
Not open for further replies.

Ras

Ras

Level 6
Joined
Dec 24, 2010
Messages
115
I had a unit with stealth (windwalk, nothing special) and i had a spell with triggers (The spell based on cripple, the spell slows and damage with a trigger)

But i had a problem, i wan't to deal more damage if the user was stealthed just before casting the ability.

How i can do that?
 
You can try checking if the unit has buff windwalk, I don't think it would be removed before the spell actually happened but I could be wrong.

Alternatively you need to catch when the windwalk happens and just keep track with a boolean/integer then when the windwalk ends via duration/attack/spell cast go back and change the boolean/integer
 
  • Like
Reactions: Ras
something like : ((Casting unit) has buff Wind walk) Igual a (==) True ?

Edit: With this it does damage with 2 X Real Agility but doesn't deals the 50 bonus damage with windwalk

  • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • Si: Condiciones
      • (Ability being cast) Igual a (==) Crippling Strike (Rogue)
    • Entonces: Acciones
      • Unidad - Cause (Target unit of ability being cast) to damage (Target unit of ability being cast), dealing (2.00 x (Real((Agillity of (Casting unit) (Incluir bonuses))))) damage of attack type Conjuros and damage type Normal
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • Si: Condiciones
            • ((Casting unit) has buff Andar del viento) Igual a (==) True
          • Entonces: Acciones
            • Unidad - Cause (Target unit of ability being cast) to damage (Target unit of ability being cast), dealing 50.00 damage of attack type Conjure and damage type Normal
          • Otros: Accion
            • Do nothing
Well i had to use variables anyway, i didn't wan't to create a separate trigger for that but i will do it. Thanks anyway.
 
Last edited:
i didn't notice that, i will try again and see whats happen

Edit: I changed these things, now the casting unit damage the target, but it doesn't deal the windwalk bonus

  • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • Si: Condiciones
      • (Ability being cast) Igual a (==) Crippling Strike (Rogue)
    • Entonces: Acciones
      • Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing (2.00 x (Real((Agillity of (Casting unit) (Incluir bonuses))))) damage of attack type Conjuros and damage type Normal
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • Si: Condiciones
            • ((Casting unit) has buff Andar del viento) Igual a (==) True
          • Entonces: Acciones
            • Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing 50.00 damage of attack type Conjure and damage type Normal
          • Otros: Accion
Notes: Andar del viento = windwalk
 
Last edited:
Status
Not open for further replies.
Back
Top