mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 21:26:23 +00:00
fix (Core/Dungeon/Boss Script): Remove Goblin Rocket Pack from inventory. (#2095)
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user