mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[10975] Report error about not existed item loot data only if item not have money loot.
This commit is contained in:
parent
dba840fe01
commit
1b5a82bccd
2 changed files with 6 additions and 6 deletions
|
|
@ -7954,20 +7954,20 @@ void Player::SendLoot(ObjectGuid guid, LootType loot_type)
|
|||
switch(loot_type)
|
||||
{
|
||||
case LOOT_DISENCHANTING:
|
||||
loot->FillLoot(item->GetProto()->DisenchantID, LootTemplates_Disenchant, this,true);
|
||||
loot->FillLoot(item->GetProto()->DisenchantID, LootTemplates_Disenchant, this, true);
|
||||
item->SetLootState(ITEM_LOOT_TEMPORARY);
|
||||
break;
|
||||
case LOOT_PROSPECTING:
|
||||
loot->FillLoot(item->GetEntry(), LootTemplates_Prospecting, this,true);
|
||||
loot->FillLoot(item->GetEntry(), LootTemplates_Prospecting, this, true);
|
||||
item->SetLootState(ITEM_LOOT_TEMPORARY);
|
||||
break;
|
||||
case LOOT_MILLING:
|
||||
loot->FillLoot(item->GetEntry(), LootTemplates_Milling, this,true);
|
||||
loot->FillLoot(item->GetEntry(), LootTemplates_Milling, this, true);
|
||||
item->SetLootState(ITEM_LOOT_TEMPORARY);
|
||||
break;
|
||||
default:
|
||||
loot->FillLoot(item->GetEntry(), LootTemplates_Item, this,true);
|
||||
loot->generateMoneyLoot(item->GetProto()->MinMoneyLoot,item->GetProto()->MaxMoneyLoot);
|
||||
loot->FillLoot(item->GetEntry(), LootTemplates_Item, this, item->GetProto()->MaxMoneyLoot == 0);
|
||||
loot->generateMoneyLoot(item->GetProto()->MinMoneyLoot, item->GetProto()->MaxMoneyLoot);
|
||||
item->SetLootState(ITEM_LOOT_CHANGED);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue