mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[9817] Add dummy effect of spell 53808
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
ebc5de7477
commit
a0c32a101c
2 changed files with 28 additions and 1 deletions
|
|
@ -1542,6 +1542,33 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
|
||||||
m_caster->CastSpell(m_caster, 54586, true);
|
m_caster->CastSpell(m_caster, 54586, true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
case 53808: // Pygmy Oil
|
||||||
|
{
|
||||||
|
const SpellEntry *pSpellShrink = sSpellStore.LookupEntry(53805);
|
||||||
|
const SpellEntry *pSpellTransf = sSpellStore.LookupEntry(53806);
|
||||||
|
|
||||||
|
if (!pSpellTransf || !pSpellShrink)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (Aura* pAura = m_caster->GetAura(pSpellShrink->Id, EFFECT_INDEX_0))
|
||||||
|
{
|
||||||
|
uint8 stackNum = pAura->GetStackAmount();
|
||||||
|
|
||||||
|
// chance to become pygmified (5, 10, 15 etc)
|
||||||
|
if (roll_chance_i(stackNum*5))
|
||||||
|
{
|
||||||
|
m_caster->RemoveAurasDueToSpell(pSpellShrink->Id);
|
||||||
|
m_caster->CastSpell(m_caster, pSpellTransf, true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (m_caster->HasAura(pSpellTransf->Id, EFFECT_INDEX_0))
|
||||||
|
return;
|
||||||
|
|
||||||
|
m_caster->CastSpell(m_caster, pSpellShrink, true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
case 55004: // Nitro Boosts
|
case 55004: // Nitro Boosts
|
||||||
{
|
{
|
||||||
if (!m_CastItem)
|
if (!m_CastItem)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9816"
|
#define REVISION_NR "9817"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue