Core/Spells: Implemented Pygmy oil use effect

Signed-off-by: Machiavelli <machiavelli.trinity@gmail.com>
This commit is contained in:
Sarjuuk
2011-01-06 21:40:32 +01:00
committed by Machiavelli
parent 8859aa689c
commit 06314c9387
2 changed files with 19 additions and 0 deletions

View File

@@ -3334,6 +3334,8 @@ void AuraEffect::HandleAuraTransform(AuraApplication const * aurApp, uint8 mode,
}
// Murloc costume
case 42365: target->SetDisplayId(21723); break;
// Pygmy Oil
case 53806: target->SetDisplayId(22512); break;
default: break;
}
}

View File

@@ -1211,6 +1211,23 @@ void Spell::EffectDummy(SpellEffIndex effIndex)
m_caster->SendMessageToSet(&data,true);
return;
}
case 53808: // Pygmy Oil
{
if (Aura *pAura = m_caster->GetAura(53806))
pAura->RefreshDuration();
else
{
Aura *pAura = m_caster->GetAura(53805);
if (!pAura || pAura->GetStackAmount() < 5 || !roll_chance_i(50))
m_caster->CastSpell(m_caster, 53805, true);
else
{
pAura->Remove();
m_caster->CastSpell(m_caster, 53806, true);
}
}
return;
}
case 54577: // U.D.E.D.
{
if (unitTarget->GetEntry() != 29402)