/// <summary> /// Executing the action, beginning the battle, only showing the battle if the player is a part of the battle. /// </summary> public override void execute() { //todo not show battle if not involved Reaction reaction = Gm.Reactions[pos.x, pos.y]; if (reaction.HasPreReact()) { reaction = reaction.PreReaction; } if (reaction.GetType() == typeof(HeroMeetReact)) { HeroMeetReact hmr = (HeroMeetReact)reaction; Gm.enterCombat(15, 11, Gm.getPlayer(playerID).Heroes[heroID], hmr.Hero); } else { UnitReaction ur = (UnitReaction)reaction; Gm.enterCombat(15, 11, Gm.getPlayer(playerID).Heroes[heroID], ur.Units, true); } }