mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[11179] Add dummy effect of spell 50918 and script effect of 50894
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
57132ab503
commit
97e6439a0f
2 changed files with 20 additions and 1 deletions
|
|
@ -1449,6 +1449,7 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
|
|||
return;
|
||||
}
|
||||
case 46167: // Planning for the Future: Create Snowfall Glade Pup Cover
|
||||
case 50918: // Gluttonous Lurkers: Create Basilisk Crystals Cover
|
||||
case 50926: // Gluttonous Lurkers: Create Zul'Drak Rat Cover
|
||||
case 51026: // Create Drakkari Medallion Cover
|
||||
case 51592: // Pickup Primordial Hatchling
|
||||
|
|
@ -1465,6 +1466,7 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
|
|||
switch(m_spellInfo->Id)
|
||||
{
|
||||
case 46167: spellId = 46773; break;
|
||||
case 50918: spellId = 50919; break;
|
||||
case 50926: spellId = 50927; break;
|
||||
case 51026: spellId = 50737; break;
|
||||
case 51592: spellId = 51593; break;
|
||||
|
|
@ -6538,6 +6540,23 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
|
|||
((Player*)caster)->RemoveSpellCategoryCooldown(82, true);
|
||||
return;
|
||||
}
|
||||
case 50894: // Zul'Drak Rat
|
||||
{
|
||||
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT)
|
||||
return;
|
||||
|
||||
if (Aura* pAura = unitTarget->GetAura(m_spellInfo->Id, EFFECT_INDEX_0))
|
||||
{
|
||||
if (pAura->GetStackAmount() >= m_spellInfo->StackAmount - 1)
|
||||
{
|
||||
// Gluttonous Lurkers: Summon Gorged Lurking Basilisk
|
||||
unitTarget->CastSpell(m_caster, 50928, true);
|
||||
((Creature*)unitTarget)->ForcedDespawn(1);
|
||||
}
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
case 51770: // Emblazon Runeblade
|
||||
{
|
||||
Unit* caster = GetAffectiveCaster();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue