- Joined
- Jan 11, 2009
- Messages
- 282
Hi guys, I have a simple trigger here, it should heal your unit by 100 * Level but it has a little change to damage it with 200 * Level. When I cast the Spell it won't even heal me.. Here is the code:
-
Events
-
Einheit - A unit stops casting an Ability
-
-
Conditions
-
(Ability being cast) Gleich Trickery Heal
-
-
Actions
-
Set HealAmount = 100
-
Set Caster = (Triggering unit)
-
Set HealedUnit = (Target unit of ability being cast)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Bedingungen
-
(Level of (Ability being cast) for Caster) equal 1
-
-
'THEN'-Aktionen
-
Set HealChance = 50
-
-
'ELSE'-Aktionen
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Bedingungen
-
(Level of (Ability being cast) for Caster) equal 2
-
-
'THEN'-Aktionen
-
Set HealChance = 60
-
-
'ELSE'-Aktionen
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Bedingungen
-
(Level of (Ability being cast) for Caster) Greater equal 3
-
-
'THEN'-Aktionen
-
Set HealChance = 70
-
-
'ELSE'-Aktionen
-
-
Set temp = (Random integer number between 0 and 100)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Bedingungen
-
temp Kleiner gleich HealChance
-
-
'THEN'-Aktionen
-
Einheit - Set life of HealedUnit to ((Life of HealedUnit) + ((Real(HealAmount)) x (Real((Level of (Ability being cast) for Caster)))))
-
-
'ELSE'-Aktionen
-
Einheit - Set life of HealedUnit to ((Life of HealedUnit) - ((Real(HealAmount)) x (Real((Level of (Ability being cast) for Caster)))))
-
-
-