TheAbyss
New Member
- Reaction score
- 2
Hey, I'm working on a map I have, and I'm trying to make any unit that belongs to Neutral Hostile and gets Charmed by a Dark Ranger respawn after 7.50 seconds times it's level. Here's what I've got so far:
It's not working at all. I know that the problem is problably that it picks up the new owner of the target instead of the old one, but I have no clue how to fix it. Any ideas? Keep in mind that it MUST be specified to only respawn Neutral Hostile units because summons from other players can be Charmed as well.
Trigger:
- Charm Respawn
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Owner of (Target unit of ability being cast)) Equal to Neutral Hostile
- (Ability being cast) Equal to Charm
- Actions
- Set TempUnitType = (Unit-type of (Target unit of ability being cast))
- Set TempPoint = (Position of (Target unit of ability being cast))
- Wait (7.50 x (Real((Level of (Target unit of ability being cast))))) seconds
- Unit - Create 1 TempUnitType for Neutral Hostile at TempPoint facing Default building facing degrees
It's not working at all. I know that the problem is problably that it picks up the new owner of the target instead of the old one, but I have no clue how to fix it. Any ideas? Keep in mind that it MUST be specified to only respawn Neutral Hostile units because summons from other players can be Charmed as well.