aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-05 15:26:13 -0500
committermegamage <none@none>2009-08-05 15:26:13 -0500
commit62055d85a972263131003552816aa218e3955692 (patch)
tree073e834fe5bd843455a5a300c5863a035a8ed55e /src/game/Player.cpp
parentd7df4cfa099286310639915d70aea0b9cd7183a2 (diff)
[8294] Some `playercreateinfo_action` fixes. Also DK food initial amount fix in code. Author: Necro
--HG-- branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r--src/game/Player.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 9f28c399c1f..b1e963bcf1d 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -746,14 +746,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);