Remove naxxramas areatrigger check to get to frostwyrm wing (no longer needed in 3.3.2).
Fixes issue #874. Thanks Gyullo for original patch. Still need db support for the teleport back from frostwyrm wing. --HG-- branch : trunk
This commit is contained in:
@@ -1450,10 +1450,6 @@ UPDATE `creature_template` SET `ScriptName`='mob_ohgan' WHERE `entry`=14988;
|
|||||||
|
|
||||||
UPDATE `creature_template` SET `ScriptName` = 'npc_skywing' WHERE `entry`=22424;
|
UPDATE `creature_template` SET `ScriptName` = 'npc_skywing' WHERE `entry`=22424;
|
||||||
|
|
||||||
DELETE FROM areatrigger_scripts WHERE `entry`=4156;
|
|
||||||
INSERT INTO areatrigger_scripts VALUES
|
|
||||||
(4156,'at_naxxramas_frostwyrm_wing');
|
|
||||||
|
|
||||||
DELETE FROM areatrigger_scripts WHERE `entry`=3066;
|
DELETE FROM areatrigger_scripts WHERE `entry`=3066;
|
||||||
INSERT INTO areatrigger_scripts VALUES
|
INSERT INTO areatrigger_scripts VALUES
|
||||||
(3066,'at_ravenholdt');
|
(3066,'at_ravenholdt');
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
-- delete naxxramas areatrigger to get to frostwyrm wing (no longer needed in 3.3.2)
|
||||||
|
DELETE FROM areatrigger_scripts WHERE `entry`=4156;
|
||||||
@@ -223,20 +223,6 @@ struct instance_naxxramas : public InstanceData
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
bool AreaTrigger_at_naxxramas_frostwyrm_wing(Player* pPlayer, const AreaTriggerEntry *at)
|
|
||||||
{
|
|
||||||
if (pPlayer->isGameMaster())
|
|
||||||
return false;
|
|
||||||
|
|
||||||
InstanceData *data = pPlayer->GetInstanceData();
|
|
||||||
if (data)
|
|
||||||
for (uint32 i = BOSS_ANUBREKHAN; i < BOSS_SAPPHIRON; ++i)
|
|
||||||
if (data->GetBossState(i) != DONE)
|
|
||||||
return true;
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
InstanceData* GetInstanceData_instance_naxxramas(Map* pMap)
|
InstanceData* GetInstanceData_instance_naxxramas(Map* pMap)
|
||||||
{
|
{
|
||||||
return new instance_naxxramas(pMap);
|
return new instance_naxxramas(pMap);
|
||||||
@@ -249,9 +235,4 @@ void AddSC_instance_naxxramas()
|
|||||||
newscript->Name = "instance_naxxramas";
|
newscript->Name = "instance_naxxramas";
|
||||||
newscript->GetInstanceData = &GetInstanceData_instance_naxxramas;
|
newscript->GetInstanceData = &GetInstanceData_instance_naxxramas;
|
||||||
newscript->RegisterSelf();
|
newscript->RegisterSelf();
|
||||||
|
|
||||||
newscript = new Script;
|
|
||||||
newscript->Name = "at_naxxramas_frostwyrm_wing";
|
|
||||||
newscript->pAreaTrigger = &AreaTrigger_at_naxxramas_frostwyrm_wing;
|
|
||||||
newscript->RegisterSelf();
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user