• 🏆 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!

[Spell] Increased hit points against cavalry

Status
Not open for further replies.
Level 9
Joined
Jun 22, 2012
Messages
472
Hey there!

I need a spell for my current project but I don't know how to implement it. The trigger should increase the hit points against ennemy cavalry (that is to say against one specific armor) during a short laps of time. I hope someone will help me!

Thanks in advance, +rep for helpers!
 

Dr Super Good

Spell Reviewer
Level 63
Joined
Jan 18, 2005
Messages
27,180
Not easily possible. Closest would be to store armor kinds in a hashtable mapped to unit types and then use a damage detection system to detect when the unit takes damage and add bonus damage to it based on armor kind and the presence of the buff on the damage source.
 
Status
Not open for further replies.
Top