mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
[c12585] Implement spell 17009
This commit is contained in:
parent
e8006b50e3
commit
21d5c42aa4
2 changed files with 22 additions and 2 deletions
|
|
@ -958,6 +958,26 @@ void Spell::EffectDummy(SpellEffectEntry const* effect)
|
|||
m_caster->CastSpell(m_caster, spell_id, true, NULL);
|
||||
return;
|
||||
}
|
||||
case 17009: // Voodoo
|
||||
{
|
||||
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
|
||||
return;
|
||||
|
||||
uint32 spell_id = 0;
|
||||
switch (urand(0, 6))
|
||||
{
|
||||
case 0: spell_id = 16707; break; // Hex
|
||||
case 1: spell_id = 16708; break; // Hex
|
||||
case 2: spell_id = 16709; break; // Hex
|
||||
case 3: spell_id = 16711; break; // Grow
|
||||
case 4: spell_id = 16712; break; // Special Brew
|
||||
case 5: spell_id = 16713; break; // Ghostly
|
||||
case 6: spell_id = 16716; break; // Launch
|
||||
}
|
||||
|
||||
m_caster->CastSpell(unitTarget, spell_id, true, NULL, NULL, m_originalCasterGUID, m_spellInfo);
|
||||
return;
|
||||
}
|
||||
case 17251: // Spirit Healer Res
|
||||
{
|
||||
if (!unitTarget)
|
||||
|
|
@ -978,7 +998,7 @@ void Spell::EffectDummy(SpellEffectEntry const* effect)
|
|||
if (!itemTarget && m_caster->GetTypeId() != TYPEID_PLAYER)
|
||||
return;
|
||||
|
||||
uint32 spell_id = roll_chance_i(50)
|
||||
uint32 spell_id = urand(0, 1)
|
||||
? 17269 // Create Resonating Skull
|
||||
: 17270; // Create Bone Dust
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "12584"
|
||||
#define REVISION_NR "12585"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue