fix (Core/Dungeon/Boss Script): Remove Goblin Rocket Pack from inventory. (#2095)

This commit is contained in:
Kaev
2019-07-31 09:08:33 +02:00
committed by Stoabrogga
parent 5ee75d0e2f
commit 9ea1b0e6be

View File

@@ -646,6 +646,13 @@ class npc_gunship : public CreatureScript
c->DespawnOrUnsummon(1);
}
}
// Destory Goblin Rocket Pack
Map::PlayerList const &PlayerList = me->GetMap()->GetPlayers();
if (!PlayerList.isEmpty())
for (Map::PlayerList::const_iterator itr = PlayerList.begin(); itr != PlayerList.end(); ++itr)
if (Player* pPlr = itr->GetSource())
pPlr->DestroyItemCount(49278, 1, true);
}
else
{