Beispiel #1
0
        protected virtual void OnGivereward(ConquestState s, BaseCreature reward)
        {
            if (s == null || s.User == null || reward == null || reward.Deleted)
            {
                return;
            }

            reward.Control(s.User);

            AnimalTaming.ScaleSkills(reward, 0.90);

            if (reward.StatLossAfterTame)
            {
                AnimalTaming.ScaleStats(reward, 0.50);
            }

            if (reward.Stable())
            {
                return;
            }

            if (s.User.IsOnline())
            {
                reward.MoveToWorld(s.User.Location, s.User.Map);
            }
            else
            {
                reward.Delete();
            }
        }