Hi there, I'm in the middle of 'Energized Strike' spell. Drain 10% of your own mana, deal 200% of the mana drained to the enemy plus your intelligence*1/1.5/2/2.5/3.
My current trigger (or at least the start of it):
I think the 200% of 10% mana drained works fine, but I can only store the attribute intelligence in an integer variable, not in a 'Real' one. And when I'm setting the life of some unit to minus, I can only use Real variables and not the Integer ones. Therefore not being able to use the intelligence as damage factor.
Any solutions?
My current trigger (or at least the start of it):
Trigger:
- Energized Strike
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Energized Strike (MAGE)
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Energized Strike (MAGE) for (Casting unit)) Equal to 1
- Then - Actions
- Unit - Set mana of (Casting unit) to ((Percentage mana of (Casting unit)) - 10.00)%
- Set EnergizedDmgIntel[1] = (Intelligence of (Casting unit) (Include bonuses))
- Set EnergizedDmg[1] = ((Percentage mana of (Casting unit)) x 0.10)
- Unit - Set life of (Attacked unit) to ((Life of (Attacked unit)) - (EnergizedDmg[1] x 2.00))
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
I think the 200% of 10% mana drained works fine, but I can only store the attribute intelligence in an integer variable, not in a 'Real' one. And when I'm setting the life of some unit to minus, I can only use Real variables and not the Integer ones. Therefore not being able to use the intelligence as damage factor.
Any solutions?