Core/Spells: Add barfing to Spell::EffectInebriate.
Signed-off-by: Machiavelli <[email protected]>
This commit is contained in:
@@ -5878,7 +5878,10 @@ void Spell::EffectInebriate(SpellEffIndex /*effIndex*/)
|
|||||||
uint16 currentDrunk = player->GetDrunkValue();
|
uint16 currentDrunk = player->GetDrunkValue();
|
||||||
uint16 drunkMod = damage * 256;
|
uint16 drunkMod = damage * 256;
|
||||||
if (currentDrunk + drunkMod > 0xFFFF)
|
if (currentDrunk + drunkMod > 0xFFFF)
|
||||||
|
{
|
||||||
currentDrunk = 0xFFFF;
|
currentDrunk = 0xFFFF;
|
||||||
|
player->CastSpell(player, 67468, false);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
currentDrunk += drunkMod;
|
currentDrunk += drunkMod;
|
||||||
player->SetDrunkValue(currentDrunk, m_CastItem ? m_CastItem->GetEntry() : 0);
|
player->SetDrunkValue(currentDrunk, m_CastItem ? m_CastItem->GetEntry() : 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user