Пример #1
0
        public static void CheckDropSOT(BaseCreature bc)
        {
            if (bc == null)
            {
                return;
            }

            var killer   = bc.FindMostRecentDamager(false);
            var creature = killer as BaseCreature;

            if (creature != null)
            {
                killer = creature.GetMaster();
            }

            if (killer is PlayerMobile && Utility.RandomDouble() < ChampionSystem.ScrollChance * 10)
            {
                PlayerMobile pm = (PlayerMobile)killer;

                if (Utility.RandomDouble() < ChampionSystem.TranscendenceChance)
                {
                    ChampionSpawn.GiveScrollTo(pm, ChampionSpawn.CreateRandomSoT(bc.Map != null && bc.Map.Rules == MapRules.FeluccaRules));
                }
            }
        }