Kitt
New Member
- Reaction score
- 5
The following two skills cast each other. That is to say, if a hero has both skills, using one will use the other skill, and thus cause it's trigger to cast aswell. The triggers are as follows.
I don't see why the triggers would cuase this to happen, because it's not JUST the trigger thats activated, the cooldown and mana loss happen for each spell aswell. I'm guessing it has something to do with the fact that i modeled the two skills both after fan of knives, but i can't find anything logical in either skills data that would cause this.
Any ideas? Thanks in advance to anyone who contributes^^
Meow!
Code:
Decoy
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Decoy
Actions
Set Dec_DecoyCaster = (Casting unit)
Unit - Create 1 (Unit-type of Dec_DecoyCaster) for Neutral Hostile at (Position of Dec_DecoyCaster) facing Default building facing degrees
Unit - Change color of (Last created unit) to (Color of (Triggering player))
Unit - Turn collision for Dec_DecoyCaster Off
Unit - Order Dec_DecoyCaster to Move To (Random point in (Current camera bounds))
Unit - Add a 17.00 second Generic expiration timer to (Last created unit)
Unit - Add Ghost to Dec_DecoyCaster
Wait 17.00 seconds
Unit - Turn collision for Dec_DecoyCaster On
Unit - Remove Ghost from Dec_DecoyCaster
Code:
Ghost Blanket
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Ghost Blanket
Actions
Set Gho_GhostCaster = (Casting unit)
Unit Group - Pick every unit in (Units within 500.00 of (Position of Gho_GhostCaster)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Picked unit) Not equal to Gho_GhostCaster
(Owner of (Picked unit)) Equal to (Owner of Gho_GhostCaster)
Then - Actions
Unit - Add Ghost to (Picked unit)
Set Gho_TotalUnitsAffected = (Gho_TotalUnitsAffected + 1)
Set Gho_UnitsAffected[Gho_TotalUnitsAffected] = (Picked unit)
Else - Actions
Do nothing
Wait 20.00 seconds
For each (Integer Gho_UnitsAffectedLoop) from 1 to Gho_TotalUnitsAffected, do (Actions)
Loop - Actions
Unit - Remove Ghost from Gho_UnitsAffected[Gho_UnitsAffectedLoop]
Set Gho_TotalUnitsAffected = 0
I don't see why the triggers would cuase this to happen, because it's not JUST the trigger thats activated, the cooldown and mana loss happen for each spell aswell. I'm guessing it has something to do with the fact that i modeled the two skills both after fan of knives, but i can't find anything logical in either skills data that would cause this.
Any ideas? Thanks in advance to anyone who contributes^^
Meow!


