Ph[o]bia
New Member
- Reaction score
- 7
My problem is: When the guy cast the spell, everything do like I want execpt one thing, a dummy randomly apear somewhere close to caster, how to fix it?
there's my trigger:
there's my trigger:
Trigger:
- Poseidon Rage
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Poseidon Rage
- Actions
- Set PRAOE = 300.00
- Set PRUnits[1] = (Triggering unit)
- Set PRTempPoint[1] = (Target point of ability being cast)
- If ((Level of Poseidon Rage for PRUnits[1]) Equal to 1) then do (Set PRDamage = (3.00 x (Real((Intelligence of PRUnits[1] (Include bonuses)))))) else do (Do nothing)
- If ((Level of Poseidon Rage for PRUnits[1]) Equal to 2) then do (Set PRDamage = ((3.50 x (Real((Intelligence of PRUnits[1] (Include bonuses))))) + (2.00 x (Real((Strength of PRUnits[1] (Include bonuses))))))) else do (Do nothing)
- If ((Level of Poseidon Rage for PRUnits[1]) Equal to 3) then do (Set PRDamage = ((4.00 x (Real((Intelligence of PRUnits[1] (Include bonuses))))) + ((3.00 x (Real((Strength of PRUnits[1] (Include bonuses))))) + (2.00 x (Real((Agility of PRUnits[1] (Include bonuses)))))))) else do (Do nothing)
- Set PROwner = (Owner of PRUnits[1])
- Set PRGroup = (Units within PRAOE of PRTempPoint[1] matching ((((Matching unit) is A structure) Not equal to True) and ((((Matching unit) is Magic Immune) Not equal to True) and (((Matching unit) belongs to an enemy of PROwner) Equal to True))))
- For each (Integer A) from 1 to 20, do (Actions)
- Loop - Actions
- For each (Integer B) from 1 to 10, do (Actions)
- Loop - Actions
- Set PRTempPoint[2] = (PRTempPoint[1] offset by PRAOE towards PRDegree degrees)
- Set PRDegree = (360.00 x ((Real((Integer A))) / 20.00))
- Unit - Create 1 Poseidon Rage[Border] for PROwner at PRTempPoint[2] facing PRTempPoint[1]
- Unit - Add a 3.00 second Generic expiration timer to PRUnits[3]
- Set PRUnits[3] = (Last created unit)
- Set PRFlying[1] = (Real(((Integer B) x 100)))
- Animation - Change PRUnits[3] flying height to PRFlying[1] at 0.00
- Loop - Actions
- For each (Integer B) from 1 to 10, do (Actions)
- Loop - Actions
- For each (Integer PRLoops) from 1 to 10, do (Actions)
- Loop - Actions
- Unit - Create 1 Poseidon Rage[Middle] for PROwner at PRTempPoint[1] facing PRTempPoint[1]
- Set PRUnits[4] = (Last created unit)
- Unit - Add a 3.00 second Generic expiration timer to PRUnits[4]
- Set PRFlying[2] = (Real((PRLoops x 10)))
- Animation - Change PRUnits[4] flying height to PRFlying[2] at 0.00
- Loop - Actions
- Unit Group - Pick every unit in PRGroup and do (Actions)
- Loop - Actions
- Set PRUnits[5] = (Picked unit)
- Unit - Cause PRUnits[1] to damage PRUnits[5], dealing PRDamage damage of attack type Spells and damage type Normal
- Loop - Actions
- Custom script: call DestroyGroup(udg_PRGroup)
- Custom script: call RemoveLocation(udg_PRTempPoint[1])
- Custom script: call RemoveLocation(udg_PRTempPoint[2])
- Events