diff options
author | Shauren <shauren.trinity@gmail.com> | 2023-10-21 14:49:42 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2023-10-21 14:49:42 +0200 |
commit | 4e87bd7942d932225436940f62e26d48719a42dd (patch) | |
tree | dc03209881d6a12ecc7bd02ca441ef6251d9729d /src/server/game/Entities/Pet | |
parent | 42e6a1045690cb536d11610b01bf2331ebb033e0 (diff) |
Core/Spells: Named and implemented most of SpellAttr7
Diffstat (limited to 'src/server/game/Entities/Pet')
-rw-r--r-- | src/server/game/Entities/Pet/Pet.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/server/game/Entities/Pet/Pet.cpp b/src/server/game/Entities/Pet/Pet.cpp index dd66132f216..067b2f6b74f 100644 --- a/src/server/game/Entities/Pet/Pet.cpp +++ b/src/server/game/Entities/Pet/Pet.cpp @@ -371,24 +371,6 @@ bool Pet::LoadPetFromDB(Player* owner, uint32 petEntry, uint32 petnumber, bool c petStable->SetCurrentActivePetIndex(newPetIndex); } - // Send fake summon spell cast - this is needed for correct cooldown application for spells - // Example: 46584 - without this cooldown (which should be set always when pet is loaded) isn't set clientside - /// @todo pets should be summoned from real cast instead of just faking it? - if (petInfo->CreatedBySpellId) - { - WorldPackets::Spells::SpellGo spellGo; - WorldPackets::Spells::SpellCastData& castData = spellGo.Cast; - - castData.CasterGUID = owner->GetGUID(); - castData.CasterUnit = owner->GetGUID(); - castData.CastID = ObjectGuid::Create<HighGuid::Cast>(SPELL_CAST_SOURCE_NORMAL, petInfo->CreatedBySpellId, map->GenerateLowGuid<HighGuid::Cast>()); - castData.SpellID = petInfo->CreatedBySpellId; - castData.CastFlags = CAST_FLAG_UNKNOWN_9; - castData.CastTime = getMSTime(); - - owner->SendMessageToSet(spellGo.Write(), true); - } - owner->SetMinion(this, true); if (!isTemporarySummon) |