I'm having trouble with this random hero button I'm making for my tavern. Instead of making a unit for the player it makes it for the Passive Neutral tavern.
Event
Condition
Actions
Anyone know how to make it so it makes a hero for the player? I'm using a wisp on the tavern to use the Random Hero Button ability.
Event
Trigger:
- Unit - A unit Starts the effect of an ability
Condition
Trigger:
- (Ability being cast) Equal to Random Hero
Actions
Trigger:
- Unit - Create 1 HeroType[(Random integer number between 1 and 38)] for (Owner of (Triggering unit)) at (Center of Hero Select <gen>) facing Default building facing (270.0) degrees
Anyone know how to make it so it makes a hero for the player? I'm using a wisp on the tavern to use the Random Hero Button ability.