[12698] Add visual vomiting to Spell::EffectInebriate

Vomit chance is guessed

Patch 3.2.0 (04-Aug-2009): A 'Drunken Vomit' feature was implemented. This causes the character to 'vomit' upon drinking too much alcohol. (original author @zwerg)
This commit is contained in:
sanctum32 2013-10-21 08:54:49 +03:00 committed by Antz
parent 7ae2fd2a6e
commit cd7226f0a7
2 changed files with 5 additions and 2 deletions

View file

@ -9349,8 +9349,11 @@ void Spell::EffectInebriate(SpellEffectEntry const* /*effect*/)
uint8 drunkValue = player->GetDrunkValue() + (uint8)damage;
if (drunkValue > 100)
{
drunkValue = 100;
if (roll_chance_i(25))
player->CastSpell(player, 67468, false); // Drunken Vomit
}
player->SetDrunkValue(drunkValue, m_CastItem ? m_CastItem->GetEntry() : 0);
}

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "12697"
#define REVISION_NR "12698"
#endif // __REVISION_NR_H__