mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
Fixes and cleanups in loot code.
* Move not-normal loot tables generation in single place (Loot::FillLoot function) for group and non group case. * Simplify LootView code.
This commit is contained in:
parent
fb432a0f36
commit
7d63f4ce02
6 changed files with 86 additions and 99 deletions
|
|
@ -1523,7 +1523,7 @@ void Aura::TriggerSpell()
|
|||
}
|
||||
Loot *loot = &creature->loot;
|
||||
loot->clear();
|
||||
loot->FillLoot(creature->GetCreatureInfo()->SkinLootId, LootTemplates_Skinning, NULL);
|
||||
loot->FillLoot(creature->GetCreatureInfo()->SkinLootId, LootTemplates_Skinning, player, true);
|
||||
for(uint8 i=0;i<loot->items.size();i++)
|
||||
{
|
||||
LootItem *item = loot->LootItemInSlot(i,player);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue