Core/Spells: Named and implemented most of SpellAttr7
Port From (https://github.com/TrinityCore/TrinityCore/commit/4e87bd7942d932225436940f62e26d48719a42dd)
This commit is contained in:
@@ -295,23 +295,6 @@ namespace Game.Entities
|
||||
petStable.SetCurrentActivePetIndex((uint)activePetIndex);
|
||||
}
|
||||
|
||||
// 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 != 0)
|
||||
{
|
||||
SpellGo spellGo = new();
|
||||
SpellCastData castData = spellGo.Cast;
|
||||
|
||||
castData.CasterGUID = owner.GetGUID();
|
||||
castData.CasterUnit = owner.GetGUID();
|
||||
castData.CastID = ObjectGuid.Create(HighGuid.Cast, SpellCastSource.Normal, owner.GetMapId(), petInfo.CreatedBySpellId, map.GenerateLowGuid(HighGuid.Cast));
|
||||
castData.SpellID = (int)petInfo.CreatedBySpellId;
|
||||
castData.CastFlags = SpellCastFlags.Unk9;
|
||||
castData.CastTime = Time.GetMSTime();
|
||||
owner.SendMessageToSet(spellGo, true);
|
||||
}
|
||||
|
||||
owner.SetMinion(this, true);
|
||||
|
||||
if (!isTemporarySummon)
|
||||
|
||||
Reference in New Issue
Block a user