- Joined
- Jul 9, 2008
- Messages
- 253
Hey there, I made a spell that when you damage someone you get mana. The problem is that it should only work on normal attacks and not when damaged with a spell.
Question: How do I make it only work on normal attacks.
Trigger 1 (Damage Receive Trigger):
Thanks in advance, Quetzalcotl
Question: How do I make it only work on normal attacks.
Trigger 1 (Damage Receive Trigger):
-
Events
- Map initialization
- Unit - A unit enters (Playable map area)
- Conditions
-
Actions
- Trigger - Add to Devour Magic <gen> the event (Unit - (Entering unit) Takes damage)
-
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
-
Loop - Actions
- Trigger - Add to Devour Magic <gen> the event (Unit - (Picked unit) Takes damage)
-
Loop - Actions
- Events
-
Conditions
- ((Damage source) has buff Devour Magic ) Equal to True
-
Actions
- Set Caster = (Damage source)
- Set Damage = (Real((Intelligence of Caster (Include bonuses))))
- Unit - Set mana of Caster to ((Mana of Caster) + Damage)
Thanks in advance, Quetzalcotl