Core/Spells: Add barfing to Spell::EffectInebriate.

Signed-off-by: Machiavelli <[email protected]>
This commit is contained in:
zwerg
2012-01-03 13:15:33 +01:00
committed by Machiavelli
parent 65aca2b806
commit 5884f4be31
+3
View File
@@ -5878,7 +5878,10 @@ void Spell::EffectInebriate(SpellEffIndex /*effIndex*/)
uint16 currentDrunk = player->GetDrunkValue();
uint16 drunkMod = damage * 256;
if (currentDrunk + drunkMod > 0xFFFF)
{
currentDrunk = 0xFFFF;
player->CastSpell(player, 67468, false);
}
else
currentDrunk += drunkMod;
player->SetDrunkValue(currentDrunk, m_CastItem ? m_CastItem->GetEntry() : 0);