Core/Quests: Fix an exploit in Red Snapper - Very Tasty!
Also fix a silly codestyle typo in previous commit. Closes #3887
This commit is contained in:
1 parent
0d98ecc6c1
commit
ef4608f07c
3 files changed
+56
-3
No files matched your search
@@ -1301,9 +1301,9 @@ class go_veil_skith_cage : public GameObjectScript
|
||||
{
|
||||
if (player->GetQuestStatus(QUEST_MISSING_FRIENDS) == QUEST_STATUS_INCOMPLETE)
|
||||
{
|
||||
std::list<Creature*> ChildrenList;
|
||||
GetCreatureListWithEntryInGrid(ChildrenList, go, NPC_CAPTIVE_CHILD, INTERACTION_DISTANCE);
|
||||
for (std::list<Creature*>::const_iterator itr = ChildrenList.begin(); itr != ChildrenList.end(); ++itr)
|
||||
std::list<Creature*> childrenList;
|
||||
GetCreatureListWithEntryInGrid(childrenList, go, NPC_CAPTIVE_CHILD, INTERACTION_DISTANCE);
|
||||
for (std::list<Creature*>::const_iterator itr = childrenList.begin(); itr != childrenList.end(); ++itr)
|
||||
{
|
||||
go->UseDoorOrButton();
|
||||
player->KilledMonsterCredit(NPC_CAPTIVE_CHILD, (*itr)->GetGUID());
|
||||
|
||||
Reference in new issue
Block a user