Example #1
0
        private void ReturnCreature(CreatureAI creature)
        {
            var owner = creature.World.Factions.Factions[OwnerFaction];

            owner.Minions.Add(creature);
            creature.CancelCurrentTask();
            creature.GetRoot().SetFlagRecursive(GameComponent.Flag.Active, true);
            creature.GetRoot().SetFlagRecursive(GameComponent.Flag.Visible, true);
        }