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;
|
SummonList summons;
|
||||||
ObjectGuid InvokerGUID;
|
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()
|
void StartPhase1()
|
||||||
{
|
{
|
||||||
me->CastSpell(me, SPELL_AHUNES_SHIELD, true);
|
me->CastSpell(me, SPELL_AHUNES_SHIELD, true);
|
||||||
@@ -331,8 +320,18 @@ public:
|
|||||||
{
|
{
|
||||||
if (!player || !go)
|
if (!player || !go)
|
||||||
return true;
|
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))
|
if (go->FindNearestCreature(NPC_AHUNE, 200.0f, true))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
@@ -345,10 +344,20 @@ public:
|
|||||||
{
|
{
|
||||||
if (!player || !go)
|
if (!player || !go)
|
||||||
return true;
|
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)
|
if (action != GOSSIP_ACTION_INFO_DEF + 1337)
|
||||||
return true;
|
return true;
|
||||||
if (!player->HasItemCount(ITEM_MAGMA_TOTEM))
|
|
||||||
return true;
|
|
||||||
if (go->FindNearestCreature(NPC_AHUNE, 200.0f, true))
|
if (go->FindNearestCreature(NPC_AHUNE, 200.0f, true))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user