- Joined
- Oct 14, 2007
- Messages
- 37
The Spell is based off life-drain
Im trying to create an ability in which if you use siphon mana on a normal unit with no buffs on it, it just transfers mana, but if the unit was banished beforehand, and you siphon mana while Unit is Banished, then it also transfers life as well as mana.
What i Did was created a trigger that, if the hero uses siphon mana on an ethernal unit, the spell changes and the hero recasts a modified life drain that drains mana and life, but here is the Issue
the switching of spells works, but the hero doesnt cast the spell, heres the full trigger:
Also I noticed Life Drain has no orderstring, so im stumped. any help would be appreciated
If you know of a different way to accomplish what I am trying to do, share it please
Im trying to create an ability in which if you use siphon mana on a normal unit with no buffs on it, it just transfers mana, but if the unit was banished beforehand, and you siphon mana while Unit is Banished, then it also transfers life as well as mana.
What i Did was created a trigger that, if the hero uses siphon mana on an ethernal unit, the spell changes and the hero recasts a modified life drain that drains mana and life, but here is the Issue
the switching of spells works, but the hero doesnt cast the spell, heres the full trigger:
Code:
Channel Start
Events
Unit - A unit Begins channeling an ability
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Siphon Mana
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Target unit of ability being cast) has buff Banish) Equal to True
Then - Actions
Unit - Order (Casting unit) to Stop
Unit - Set mana of (Casting unit) to ((Mana of (Casting unit)) + 75.00)
Player - Enable Siphon Mana (Ethernal Targets) for (Owner of (Casting unit))
Hero - Modify unspent skill points of (Casting unit): Add 1 points
Hero - Learn skill for (Casting unit): Siphon Mana (Ethernal Targets)
Unit - Set level of Siphon Mana (Ethernal Targets) for (Triggering unit) to (Level of Siphon Mana for (Casting unit))
Player - Disable Siphon Mana for (Owner of (Casting unit))
[B]Unit - Order (Casting unit) to Neutral Dark Ranger - Life Drain (Target unit of ability being cast) - Anything wrong with this? the ability is based off DR's Life Drain[/B]
Else - Actions
Else - Actions
Also I noticed Life Drain has no orderstring, so im stumped. any help would be appreciated
If you know of a different way to accomplish what I am trying to do, share it please