mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[11207] Fixed cheating with item loot with some conditionas.
Thanks to zergtmn for explictly pointing to problematic line.
This commit is contained in:
parent
f1899e3b27
commit
cd1465b1e4
2 changed files with 2 additions and 2 deletions
|
|
@ -8057,7 +8057,7 @@ void Player::SendLoot(ObjectGuid guid, LootType loot_type)
|
||||||
item->SetLootState(ITEM_LOOT_TEMPORARY);
|
item->SetLootState(ITEM_LOOT_TEMPORARY);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
loot->FillLoot(item->GetEntry(), LootTemplates_Item, this, item->GetProto()->MaxMoneyLoot == 0);
|
loot->FillLoot(item->GetEntry(), LootTemplates_Item, this, true, item->GetProto()->MaxMoneyLoot == 0);
|
||||||
loot->generateMoneyLoot(item->GetProto()->MinMoneyLoot, item->GetProto()->MaxMoneyLoot);
|
loot->generateMoneyLoot(item->GetProto()->MinMoneyLoot, item->GetProto()->MaxMoneyLoot);
|
||||||
item->SetLootState(ITEM_LOOT_CHANGED);
|
item->SetLootState(ITEM_LOOT_CHANGED);
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11206"
|
#define REVISION_NR "11207"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue