Hello once more Hivers! I'd like some help to figure out what is happening here. I'll explain below:
I've made a custom spell based on Firebolt, that just cast it multiple times (Making a single target be an AoE spell), and it works very well. The problem is, when we cast the spell, and we retreat with our hero, killed units don't grant EXP. This shouldn't happen, as my project has global EXP gain, and it works on every other spell already made. I've noticed that if we get "out of range" of the spell, the EXP is not granted. Below, I'll leave some information:
I thanks in advance.
I've made a custom spell based on Firebolt, that just cast it multiple times (Making a single target be an AoE spell), and it works very well. The problem is, when we cast the spell, and we retreat with our hero, killed units don't grant EXP. This shouldn't happen, as my project has global EXP gain, and it works on every other spell already made. I've noticed that if we get "out of range" of the spell, the EXP is not granted. Below, I'll leave some information:
-
Magic Missiles T1
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Magic Missiles (Rank 1)
-
-
Actions
-
Set VariableSet Temp_Location_For_Players[(Player number of (Triggering player))] = (Target point of ability being cast)
-
Set VariableSet Temp_Location_For_Players2[(Player number of (Triggering player))] = (Position of (Casting unit))
-
Set VariableSet Temp_Group_For_Players[(Player number of (Triggering player))] = (Units within 300.00 of Temp_Location_For_Players[(Player number of (Triggering player))] matching (((Triggering player) is an enemy of Player 8 (Pink).) Equal to True).)
-
Unit - Create 1 Dummy Arena Effect for (Owner of (Casting unit)) at Temp_Location_For_Players2[(Player number of (Triggering player))] facing Default building facing degrees
-
Unit - Add a 0.25 second Generic expiration timer to (Last created unit)
-
Unit - Add Magic Missiles (Dummy Rank 1) to (Last created unit)
-
Unit - Set level of Magic Missiles (Dummy Rank 1) for (Last created unit) to (Level of (Ability being cast) for (Casting unit))
-
Unit Group - Pick every unit in Temp_Group_For_Players[(Player number of (Triggering player))] and do (Actions)
-
Loop - Actions
-
Unit - Order (Last created unit) to Neutral - Firebolt (Picked unit)
-
-
-
Custom script: call RemoveLocation( udg_Temp_Location_For_Players[GetConvertedPlayerId(GetTriggerPlayer())] )
-
Custom script: call RemoveLocation( udg_Temp_Location_For_Players2[GetConvertedPlayerId(GetTriggerPlayer())] )
-
Custom script: call DestroyGroup(udg_Temp_Group_For_Players[GetConvertedPlayerId(GetTriggerPlayer())] )
-
-
I thanks in advance.