mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 22:37:02 +00:00
[11394] the spell ids 26275 and 38358 were out of order in the switch(). moved them to the correct place.
thanks to vladimir for pointing out!
This commit is contained in:
parent
25fc13f64c
commit
dd0b464a87
2 changed files with 25 additions and 25 deletions
|
|
@ -6251,22 +6251,6 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
|
||||||
unitTarget->CastSpell(unitTarget, roll_chance_i(50) ? 24714 : 24715, true);
|
unitTarget->CastSpell(unitTarget, roll_chance_i(50) ? 24714 : 24715, true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
case 26275: // PX-238 Winter Wondervolt TRAP
|
|
||||||
{
|
|
||||||
uint32 spells[4] = { 26272, 26157, 26273, 26274 };
|
|
||||||
|
|
||||||
// check presence
|
|
||||||
for(int j = 0; j < 4; ++j)
|
|
||||||
if (unitTarget->HasAura(spells[j], EFFECT_INDEX_0))
|
|
||||||
return;
|
|
||||||
|
|
||||||
// select spell
|
|
||||||
uint32 iTmpSpellId = spells[urand(0,3)];
|
|
||||||
|
|
||||||
// cast
|
|
||||||
unitTarget->CastSpell(unitTarget, iTmpSpellId, true);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
case 25140: // Orb teleport spells
|
case 25140: // Orb teleport spells
|
||||||
case 25143:
|
case 25143:
|
||||||
case 25650:
|
case 25650:
|
||||||
|
|
@ -6315,6 +6299,22 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
|
||||||
m_caster->CastSpell(unitTarget, spells[urand(0, 2)], true);
|
m_caster->CastSpell(unitTarget, spells[urand(0, 2)], true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
case 26275: // PX-238 Winter Wondervolt TRAP
|
||||||
|
{
|
||||||
|
uint32 spells[4] = { 26272, 26157, 26273, 26274 };
|
||||||
|
|
||||||
|
// check presence
|
||||||
|
for(int j = 0; j < 4; ++j)
|
||||||
|
if (unitTarget->HasAura(spells[j], EFFECT_INDEX_0))
|
||||||
|
return;
|
||||||
|
|
||||||
|
// select spell
|
||||||
|
uint32 iTmpSpellId = spells[urand(0,3)];
|
||||||
|
|
||||||
|
// cast
|
||||||
|
unitTarget->CastSpell(unitTarget, iTmpSpellId, true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
case 26465: // Mercurial Shield - need remove one 26464 Mercurial Shield aura
|
case 26465: // Mercurial Shield - need remove one 26464 Mercurial Shield aura
|
||||||
unitTarget->RemoveAuraHolderFromStack(26464);
|
unitTarget->RemoveAuraHolderFromStack(26464);
|
||||||
return;
|
return;
|
||||||
|
|
@ -6355,14 +6355,6 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 38358: // Tidal Surge
|
|
||||||
{
|
|
||||||
if (!unitTarget)
|
|
||||||
return;
|
|
||||||
|
|
||||||
unitTarget->CastSpell(unitTarget, 38353, true, NULL, NULL, m_caster->GetObjectGuid());
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
case 30918: // Improved Sprint
|
case 30918: // Improved Sprint
|
||||||
{
|
{
|
||||||
if (!unitTarget)
|
if (!unitTarget)
|
||||||
|
|
@ -6372,6 +6364,14 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
|
||||||
unitTarget->RemoveAurasAtMechanicImmunity(IMMUNE_TO_ROOT_AND_SNARE_MASK,30918,true);
|
unitTarget->RemoveAurasAtMechanicImmunity(IMMUNE_TO_ROOT_AND_SNARE_MASK,30918,true);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case 38358: // Tidal Surge
|
||||||
|
{
|
||||||
|
if (!unitTarget)
|
||||||
|
return;
|
||||||
|
|
||||||
|
unitTarget->CastSpell(unitTarget, 38353, true, NULL, NULL, m_caster->GetObjectGuid());
|
||||||
|
return;
|
||||||
|
}
|
||||||
case 41055: // Copy Weapon
|
case 41055: // Copy Weapon
|
||||||
{
|
{
|
||||||
if (m_caster->GetTypeId() != TYPEID_UNIT || !unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
|
if (m_caster->GetTypeId() != TYPEID_UNIT || !unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11393"
|
#define REVISION_NR "11394"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue