• 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.

Identify melee unit.

Status
Not open for further replies.
Level 14
Joined
Jul 12, 2011
Messages
1,371
Hello everyone.
Here's a question: What could be a condition which could triger an action(e.t.c.) that could identfy that the unit is attacked by only a melee unit?

To be more specific I make a passive spell that will work with 15% chance and only if the unit is attacked by a melee unit. Can anyone show me how this condition should be????
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
  • Melee Counter
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Attacking unit) is A melee attacker) Equal to True
      • (Random integer number between 1 and 100) Less than or equal to 15
    • Actions
      • -------- ACTIONS HERE --------
Boolean Comparison - Unit - Unit Classification Check
Integer Comparison - Math - Random Number
 
Status
Not open for further replies.
Top