mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-17 16:10:49 +01:00
Core/Spells: Implemented Pygmy oil use effect
Signed-off-by: Machiavelli <machiavelli.trinity@gmail.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user