diff options
author | megamage <none@none> | 2009-07-24 09:05:47 +0800 |
---|---|---|
committer | megamage <none@none> | 2009-07-24 09:05:47 +0800 |
commit | c46e8f7b0f4853751c8f40e93a6657230b251456 (patch) | |
tree | 64cc94d3b2380da52e912140bf33615a85b41b2a /src | |
parent | 0c4c487df0f9e52179249af805260d024c46334d (diff) |
[8196] Implement item 44012 spell effects. Author: evilstar
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/SpellEffects.cpp | 15 | ||||
-rw-r--r-- | src/trinitycore/trinitycore.conf.dist | 4 |
2 files changed, 17 insertions, 2 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 75a707b3105..67e1c88c7ef 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -1205,6 +1205,21 @@ void Spell::EffectDummy(uint32 i) case 58418: // Portal to Orgrimmar case 58420: // Portal to Stormwind return; // implemented in EffectScript[0] + case 59640: // Underbelly Elixir + { + if(m_caster->GetTypeId() != TYPEID_PLAYER) + return; + + uint32 spell_id = 0; + switch(urand(1,3)) + { + case 1: spell_id = 59645; break; + case 2: spell_id = 59831; break; + case 3: spell_id = 59843; break; + } + m_caster->CastSpell(m_caster,spell_id,true,NULL); + return; + } } //All IconID Check in there diff --git a/src/trinitycore/trinitycore.conf.dist b/src/trinitycore/trinitycore.conf.dist index 9a33a2daf6e..cbc2ee54f3d 100644 --- a/src/trinitycore/trinitycore.conf.dist +++ b/src/trinitycore/trinitycore.conf.dist @@ -632,8 +632,8 @@ ChatLogTimestamp = 0 # # AllFlightPaths # Players will start with all flight paths (Note: ALL flight paths, not only player's team) -# Default: 0 (true) -# 1 (false) +# Default: 0 (false) +# 1 (true) # # AlwaysMaxSkillForLevel # Players will automatically gain max level dependent (weapon/defense) skill when logging in, leveling up etc. |