From 8178903833f233a87c6dfd772fd33b692abccff5 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Wed, 5 Apr 2023 08:03:59 -0400 Subject: [PATCH] Core/PacketIO: Fixed array size of CMSG_QUEST_POI_QUERY as of patch 10.0.7 Port From (https://github.com/TrinityCore/TrinityCore/commit/6af42ce82da9273eb47a2a53637f1aaf08a63f1d) --- Source/Game/Entities/Creature/Creature.cs | 18 +++--------------- Source/Game/Networking/Packets/QueryPackets.cs | 2 +- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/Source/Game/Entities/Creature/Creature.cs b/Source/Game/Entities/Creature/Creature.cs index e3e162bb1..817d906a8 100644 --- a/Source/Game/Entities/Creature/Creature.cs +++ b/Source/Game/Entities/Creature/Creature.cs @@ -1167,22 +1167,10 @@ namespace Game.Entities public override bool IsMovementPreventedByCasting() { - // first check if currently a movement allowed channel is active and we're not casting - Spell spell = GetCurrentSpell(CurrentSpellTypes.Channeled); - if (spell != null) - { - if (spell.GetState() != SpellState.Finished && spell.IsChannelActive()) - if (spell.CheckMovement() != SpellCastResult.SpellCastOk) - return true; - } + if (!base.IsMovementPreventedByCasting() && !HasSpellFocus()) + return false; - if (HasSpellFocus()) - return true; - - if (HasUnitState(UnitState.Casting)) - return true; - - return false; + return true; } public void StartPickPocketRefillTimer() diff --git a/Source/Game/Networking/Packets/QueryPackets.cs b/Source/Game/Networking/Packets/QueryPackets.cs index e7ec6ff8f..ef6246ed8 100644 --- a/Source/Game/Networking/Packets/QueryPackets.cs +++ b/Source/Game/Networking/Packets/QueryPackets.cs @@ -391,7 +391,7 @@ namespace Game.Networking.Packets } public int MissingQuestCount; - public uint[] MissingQuestPOIs = new uint[125]; + public uint[] MissingQuestPOIs = new uint[175]; } public class QuestPOIQueryResponse : ServerPacket