mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[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:
parent
7ae2fd2a6e
commit
cd7226f0a7
2 changed files with 5 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "12697"
|
||||
#define REVISION_NR "12698"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue