mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
Merge pull request #7 from lellonicole/gunship_mage
[Core/Script] Gunship battle, fix evade for battlemage & [Core/script] Quest, fix complete quest and remove morph on movementSpline complete
This commit is contained in:
@@ -213,6 +213,13 @@ void WorldSession::HandleMoveSplineDoneOpcode(WorldPacket& recvData)
|
||||
movementInfo.guid = guid;
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
@@ -1759,6 +1759,11 @@ class npc_gunship_mage : public CreatureScript
|
||||
switch (Index)
|
||||
{
|
||||
case SLOT_FREEZE_MAGE:
|
||||
if (Player* player = me->SelectNearestPlayer(50.0f))
|
||||
{
|
||||
me->SetInCombatWithZone();
|
||||
me->AddThreat(player, 1.0f);
|
||||
}
|
||||
me->CastSpell((Unit*)NULL, SPELL_BELOW_ZERO, false);
|
||||
break;
|
||||
case SLOT_MAGE_1:
|
||||
|
||||
Reference in New Issue
Block a user