Spray-
Member
- Reaction score
- 1
Hi, im making a spell in which it creates a unit which has 2 abilities which in theory increase depending on the level of the base ability the hero uses to activate the trigger, but for some reason, the created unit's spells stays at the same level (1). Here's the code.
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Quicksand (Buccaneer)
Actions
Unit - Create 1 Quicksand for (Owner of (Casting unit)) at (Target point of ability being cast) facing Default building facing degrees
Set Quicksand = (Last created unit)
Wait 0.10 seconds
Unit - Set level of Quicksand Aura (Buccaneer) for Quicksand to (Level of Quicksand (Buccaneer) for Buccaneer 0065 <gen>)
Unit - Set level of Quicksand Damage (Buccaneer) for Quicksand to (Level of Quicksand (Buccaneer) for Buccaneer 0065 <gen>)
Wait 15.00 seconds
Unit - Remove Quicksand from the game
And yes, the Unit has the abilities and both abilities have levels up to 10.
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Quicksand (Buccaneer)
Actions
Unit - Create 1 Quicksand for (Owner of (Casting unit)) at (Target point of ability being cast) facing Default building facing degrees
Set Quicksand = (Last created unit)
Wait 0.10 seconds
Unit - Set level of Quicksand Aura (Buccaneer) for Quicksand to (Level of Quicksand (Buccaneer) for Buccaneer 0065 <gen>)
Unit - Set level of Quicksand Damage (Buccaneer) for Quicksand to (Level of Quicksand (Buccaneer) for Buccaneer 0065 <gen>)
Wait 15.00 seconds
Unit - Remove Quicksand from the game
And yes, the Unit has the abilities and both abilities have levels up to 10.