mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 07:48:02 +00:00
[Core/Script] As the crow flies, fix quest complete and remove morph at movement complete
This commit is contained in:
@@ -213,6 +213,13 @@ void WorldSession::HandleMoveSplineDoneOpcode(WorldPacket& recvData)
|
|||||||
movementInfo.guid = guid;
|
movementInfo.guid = guid;
|
||||||
ReadMovementInfo(recvData, &movementInfo);
|
ReadMovementInfo(recvData, &movementInfo);
|
||||||
|
|
||||||
|
// Fix quest "As the crow flies" - Remove morph and complete quest
|
||||||
|
if(GetPlayer()->GetQuestStatus(9718) == QUEST_STATUS_INCOMPLETE)
|
||||||
|
{
|
||||||
|
GetPlayer()->CompleteQuest(9718);
|
||||||
|
GetPlayer()->RemoveAurasDueToSpell(38776);
|
||||||
|
}
|
||||||
|
|
||||||
recvData.read_skip<uint32>(); // spline id
|
recvData.read_skip<uint32>(); // spline id
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user