- Joined
- Mar 3, 2009
- Messages
- 327
When I use the spell the infernal is created in the middle of the map, as though temppoint[0] is a point with no value. The Last Created Unit is applied to my hero, which would have been created ages ago. I looked and I couldn't see any bugs, but then again, i never usually can. Help is appreciated, and please make your answer as complete as possible because i can only get on every few days.
-
Infernal
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Inferno
-
-
Actions
-
Custom script: local unit udg_tempunit
-
Wait 1.00 seconds
-
Set Temppoint[0] = (Target point of ability being cast)
-
Unit - Create 1 Infernal for (Owner of (Triggering unit)) at Temppoint[0] facing Default building facing degrees
-
Set tempunit = (Last created unit)
-
Hero - Disable experience gain for (Last created unit)
-
Hero - Modify Strength of (Last created unit): Set to (Strength of (Rally-Point of (Triggering unit) as a unit) (Include bonuses))
-
Hero - Modify Agility of (Last created unit): Set to (Strength of (Rally-Point of (Triggering unit) as a unit) (Include bonuses))
-
Unit - Add a (Real((Intelligence of (Triggering unit) (Include bonuses)))) second Generic expiration timer to (Triggering unit)
-
Animation - Play (Last created unit)'s birth animation
-
Unit Group - Pick every unit in (Units within 250.00 of Temppoint[0]) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) belongs to an enemy of Player 1 (Red)) Equal to True
-
-
Then - Actions
-
Unit - Cause (Triggering unit) to damage (Picked unit), dealing ((Real((Intelligence of (Triggering unit) (Include bonuses)))) x 3.00) damage of attack type Spells and damage type Magic
-
Unit - Order Dummy 0009 <gen> to Neutral - Hurl Boulder (Picked unit)
-
-
Else - Actions
-
-
-
-
Wait 2.37 seconds
-
Animation - Play tempunit's stand animation
-
-