und34d-rul3
New Member
- Reaction score
- 12
1) I have a trigger that creates a dummy unit to cast chain lightning, but it doesn't seem to work at all.
This is supposed to detect when lightning (an auto cast ability) is casted and then create a dummy unit to cast whatever level of chain lightning is researched by the player (I set that in another trigger) and then cast it. I think the problem may be the "Unit - Order (Last created unit) to Orc Far Seer - Chain Lightning (Target unit of ability being cast)"; I couldn't find where to choose the exact spell to cast it.
2) I modified inner fire to add no bonus damage and to target enemies and not allies, and I got rid of all buffs, animations and sounds. I am using this in the previous trigger as an auto cast ability, but my problem is that it is still giving the Inner Fire buff, even though I removed it from the "Stats - Buffs".
Code:
Lightning
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Lightning
Actions
For each (Integer A) from 1 to 12, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Triggering unit)) Equal to (Player((Integer A)))
Then - Actions
Unit - Create 1 Dummy for (Player((Integer A))) at (Target point of issued order) facing Default building facing degrees
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
LightningLevel[(Integer A)] Greater than or equal to 1
Then - Actions
Unit - Set level of Chain Lightning for (Last created unit) to LightningLevel[(Integer A)]
Unit - Order (Last created unit) to Orc Far Seer - Chain Lightning (Target unit of ability being cast)
Unit - Remove (Last created unit) from the game
Else - Actions
Else - Actions
2) I modified inner fire to add no bonus damage and to target enemies and not allies, and I got rid of all buffs, animations and sounds. I am using this in the previous trigger as an auto cast ability, but my problem is that it is still giving the Inner Fire buff, even though I removed it from the "Stats - Buffs".