示例#1
0
        /// <summary>
        /// Is called when this Character gets a new minion or pet or when
        /// he changes his ActivePet to the given one.
        /// </summary>
        void InitializeMinion(NPC pet)
        {
            Summon       = pet.EntityId;
            pet.Summoner = this;
            pet.Creator  = EntityId;
            pet.PetRecord.SetupPet(pet);
            pet.SetPetAttackMode(pet.PetRecord.AttackMode);

            ActivePet = pet;

            for (var s = DamageSchool.Physical; s < DamageSchool.Count; s++)
            {
                // update all resistances
                pet.UpdatePetResistance(s);
            }
        }