mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 10:30:27 +00:00
fix(Scripts/SlavePens): Remove the Magma Totem requirement to summoni… (#16602)
fix(Scripts/SlavePens): Remove the Magma Totem requirement to summoning Ahune
This commit is contained in:
@@ -109,17 +109,6 @@ public:
|
||||
SummonList summons;
|
||||
ObjectGuid InvokerGUID;
|
||||
|
||||
bool CanBeSeen(Player const* player) override
|
||||
{
|
||||
if (player->IsGameMaster())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
Group const* group = player->GetGroup();
|
||||
return group && sLFGMgr->GetDungeon(group->GetGUID()) == lfg::LFG_DUNGEON_FROST_LORD_AHUNE;
|
||||
}
|
||||
|
||||
void StartPhase1()
|
||||
{
|
||||
me->CastSpell(me, SPELL_AHUNES_SHIELD, true);
|
||||
@@ -331,8 +320,18 @@ public:
|
||||
{
|
||||
if (!player || !go)
|
||||
return true;
|
||||
if (!player->HasItemCount(ITEM_MAGMA_TOTEM))
|
||||
return true;
|
||||
|
||||
if (!player->IsGameMaster())
|
||||
{
|
||||
if (Group const* group = player->GetGroup())
|
||||
{
|
||||
if (sLFGMgr->GetDungeon(group->GetGUID()) != lfg::LFG_DUNGEON_FROST_LORD_AHUNE)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (go->FindNearestCreature(NPC_AHUNE, 200.0f, true))
|
||||
return true;
|
||||
|
||||
@@ -345,10 +344,20 @@ public:
|
||||
{
|
||||
if (!player || !go)
|
||||
return true;
|
||||
|
||||
if (!player->IsGameMaster())
|
||||
{
|
||||
if (Group const* group = player->GetGroup())
|
||||
{
|
||||
if (sLFGMgr->GetDungeon(group->GetGUID()) != lfg::LFG_DUNGEON_FROST_LORD_AHUNE)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (action != GOSSIP_ACTION_INFO_DEF + 1337)
|
||||
return true;
|
||||
if (!player->HasItemCount(ITEM_MAGMA_TOTEM))
|
||||
return true;
|
||||
if (go->FindNearestCreature(NPC_AHUNE, 200.0f, true))
|
||||
return true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user