Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Unit - Replace (Triggering unit) with a Footman using The old unit's relative life and mana
Selection - Select (Last Replaced unit) for (Owner of (Last Replaced unit))
Set IntegerVariable[0] = Hero experience of (Triggering unit)
Set IntegerVariable[1] = Strength of (Triggering unit) (Exclude bonuses)
Set IntegerVariable[2] = Agility of (Triggering unit) (Exclude bonuses)
Set IntegerVariable[3] = Intelligence of (Triggering unit) (Exclude bonuses)
Unit - Replace (Triggering unit) with a Paladin using The old unit's relative life and mana
Hero - Set (Last Replaced unit) experience to IntegerVariable[0], Hide level-up graphics
Hero - Modify Strength of (Last Replaced unit): Set to IntegerVariable[1]
Hero - Modify Agility of (Last Replaced unit): Set to IntegerVariable[2]
Hero - Modify Intelligence of (Last Replaced unit): Set to IntegerVariable[3]
Selection - Select (Last Replaced unit) for (Owner of (Last Replaced unit))
It's a instance based map, as it's a boss that casts this ability, it's supposed to be cast (instant) on a enemy unit (in this case, a player [user]). Sorry, I forgot details![]()
i wouldn't say it's instant...on an enemy unit
Consume

Events


Unit - A unit Finishes casting an ability

Conditions


(Ability being cast) Equal to Consume

Actions


Set Loc = (Position of (Triggering unit))


Set TempGroup = (Units within 600.00 of Loc matching ((Owner of (Matching unit)) Not equal to (Owner of (Triggering unit))))


Unit - Replace (Random unit from TempGroup) with a Footman using The old unit's relative life and mana


Custom script: call ClearGroup(udg_TempGroup)


Custom script: call RemoveLocation(udg_Loc)
Custom script: call GroupClear(udg_TempGroup)
Custom script: call DestroyGroup(udg_TempGroup)
shouldn't it be
since the way you do it, you only clear the group assigned to the variable TempGroup but it still stays in the memory as a blank group, so it leaks... you only use clear if you add units to a global group, but your method creates a new group everytime and assigns it to the variable TempGroup, so you need to destroy them after use...
Custom script: call DestroyGroup(udg_TempGroup)
