Misc fixes

This commit is contained in:
hondacrx
2022-05-26 20:08:54 -04:00
parent 558e976a5e
commit 9b6540c91d
10 changed files with 97 additions and 184 deletions
-4
View File
@@ -1302,10 +1302,6 @@ namespace Game.Spells
case SpellFamilyNames.Generic:
switch (GetId())
{
case 32474: // Buffeting Winds of Susurrus
if (target.IsTypeId(TypeId.Player))
target.ToPlayer().ActivateTaxiPathTo(506, GetId());
break;
case 33572: // Gronn Lord's Grasp, becomes stoned
if (GetStackAmount() >= 5 && !target.HasAura(33652))
target.CastSpell(target, 33652, new CastSpellExtraArgs(TriggerCastFlags.FullMask).SetOriginalCastId(GetCastId()));
+1 -1
View File
@@ -515,7 +515,7 @@ namespace Game.Spells
// Update serverside orientation of tracking channeled auras on periodic update ticks
// exclude players because can turn during channeling and shouldn't desync orientation client/server
if (caster != null && !caster.IsPlayer() && m_spellInfo.IsChanneled() && m_spellInfo.HasAttribute(SpellAttr1.ChannelTrackTarget) && caster.m_unitData.ChannelObjects.Size())
if (caster != null && !caster.IsPlayer() && m_spellInfo.IsChanneled() && m_spellInfo.HasAttribute(SpellAttr1.ChannelTrackTarget) && caster.m_unitData.ChannelObjects.Size() != 0)
{
ObjectGuid channelGuid = caster.m_unitData.ChannelObjects[0];
if (channelGuid != caster.GetGUID())