mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[8294] Some playercreateinfo_action fixes. Also DK food initial amount fix in code.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
ebac9a23de
commit
4841fae910
5 changed files with 78 additions and 21 deletions
|
|
@ -688,14 +688,14 @@ bool Player::Create( uint32 guidlow, const std::string& name, uint8 race, uint8
|
|||
switch(iProto->Spells[0].SpellCategory)
|
||||
{
|
||||
case 11: // food
|
||||
if(iProto->Stackable > 4)
|
||||
count = 4;
|
||||
count = getClass()==CLASS_DEATH_KNIGHT ? 10 : 4;
|
||||
break;
|
||||
case 59: // drink
|
||||
if(iProto->Stackable > 2)
|
||||
count = 2;
|
||||
count = 2;
|
||||
break;
|
||||
}
|
||||
if(iProto->Stackable < count)
|
||||
count = iProto->Stackable;
|
||||
}
|
||||
|
||||
StoreNewItemInBestSlots(item_id, count);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue