Draganizer
Member
- Reaction score
- 1
How would i make a passive ability when my unit is attacked by a meele he gains 1 mana per 25 damage taken?
make aq new ability based on bash set al rows to 0
then create this triggerTrigger:
- mr learn
- Events
- Unit - A unit Learns a skill
- Conditions
- (Learned Hero Skill) Equal to Mana recovery
- Actions
- Trigger - Add to mr event <gen> the event (Unit - (Triggering unit) Takes damage)
Trigger:
- mr event
- Events
- Conditions
- ((Damage source) is A melee attacker) Equal to True
- Actions
- Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) + ((Damage taken) / 25.00))
sry i forgot this condition thx for remember crazyfanatic.
BTW as u can see you dont must to check distance u may use a boolean condition
hmm that sounds goo but it will work if its bought from a tavern? or randomed from a all random hero pick trigger?