D
DsD)Core(
Guest
Hey. I have a pyromancer hero that has an ability called Fire Entity. This morphs the pyromancer into a powerful firelord form, and it's supposed to remove 2 of his abilities (spells that keep enemies on distance and damage them from distance) and add 2 other abilities to it (immolation and an ability that keeps units close) as the fire entity form is a melee form.
This ability adding and removing doesn't seem to work at ALL lol. It just removes all abilities and doesn't do what I want it to. What am I doing wrong? Here's my trigger..
By the way, the upgrade thing does seem to work, but that's irrelevant. It's about the ability adding and removing.
This ability adding and removing doesn't seem to work at ALL lol. It just removes all abilities and doesn't do what I want it to. What am I doing wrong? Here's my trigger..
Code:
Spell Fire Entity
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to |c00E3CF57Fire Entity
Actions
Player - Set the current research level of Pyro Entity upgrade to (Level of |c00E3CF57Fire Entity for (Triggering unit)) for (Owner of (Triggering unit))
Set LF_Point1 = (Position of (Triggering unit))
Special Effect - Create a special effect at LF_Point1 using Objects\Spawnmodels\Human\SmallFlameSpawn\SmallFlameSpawn.mdl
Special Effect - Destroy (Last created special effect)
Custom script: call RemoveLocation(udg_LF_Point1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EntityCheck[(Player number of (Owner of (Triggering unit)))] Equal to False
Then - Actions
Set EntityCheck[(Player number of (Owner of (Triggering unit)))] = True
Unit - Remove |c00E3CF57Fire Nova from (Triggering unit)
Unit - Remove |c00E3CF57Fireblast from (Triggering unit)
Unit - Add |c00E3CF57Explosion to (Triggering unit)
Unit - Add |c00E3CF57Immolation to (Triggering unit)
Unit - Set level of |c00E3CF57Explosion for (Triggering unit) to (Level of |c00E3CF57Fire Entity for (Triggering unit))
Unit - Set level of |c00E3CF57Immolation for (Triggering unit) to (Level of |c00E3CF57Fire Entity for (Triggering unit))
Else - Actions
Set EntityCheck[(Player number of (Owner of (Triggering unit)))] = False
Unit - Remove |c00E3CF57Explosion from (Triggering unit)
Unit - Remove |c00E3CF57Immolation from (Triggering unit)
Unit - Add |c00E3CF57Fire Nova to (Triggering unit)
Unit - Add |c00E3CF57Fireblast to (Triggering unit)
By the way, the upgrade thing does seem to work, but that's irrelevant. It's about the ability adding and removing.