Core/Spells: Remove some obsolete code (stealth is no longer a ranked spell).
This commit is contained in:
@@ -761,11 +761,6 @@ bool SpellInfo::IsStackableWithRanks() const
|
|||||||
Effects[i].ApplyAuraName == SPELL_AURA_MOD_SHAPESHIFT)
|
Effects[i].ApplyAuraName == SPELL_AURA_MOD_SHAPESHIFT)
|
||||||
return false;
|
return false;
|
||||||
break;
|
break;
|
||||||
case SPELLFAMILY_ROGUE:
|
|
||||||
// Rogue Stealth
|
|
||||||
if (Effects[i].Effect == SPELL_EFFECT_APPLY_AURA &&
|
|
||||||
Effects[i].ApplyAuraName == SPELL_AURA_MOD_SHAPESHIFT)
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
@@ -938,25 +933,6 @@ bool SpellInfo::IsSingleTargetWith(SpellInfo const* spellInfo) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool SpellInfo::IsAuraExclusiveBySpecificWith(SpellInfo const* spellInfo) const
|
bool SpellInfo::IsAuraExclusiveBySpecificWith(SpellInfo const* spellInfo) const
|
||||||
{
|
|
||||||
SpellSpecificType spellSpec = GetSpellSpecific();
|
|
||||||
switch (spellSpec)
|
|
||||||
{
|
|
||||||
case SPELL_SPECIFIC_SEAL:
|
|
||||||
case SPELL_SPECIFIC_HAND:
|
|
||||||
case SPELL_SPECIFIC_AURA:
|
|
||||||
case SPELL_SPECIFIC_STING:
|
|
||||||
case SPELL_SPECIFIC_CURSE:
|
|
||||||
case SPELL_SPECIFIC_ASPECT:
|
|
||||||
case SPELL_SPECIFIC_JUDGEMENT:
|
|
||||||
case SPELL_SPECIFIC_WARLOCK_CORRUPTION:
|
|
||||||
return spellSpec == spellInfo->GetSpellSpecific();
|
|
||||||
default:
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
bool SpellInfo::IsAuraExclusiveBySpecificPerCasterWith(SpellInfo const* spellInfo) const
|
|
||||||
{
|
{
|
||||||
SpellSpecificType spellSpec1 = GetSpellSpecific();
|
SpellSpecificType spellSpec1 = GetSpellSpecific();
|
||||||
SpellSpecificType spellSpec2 = spellInfo->GetSpellSpecific();
|
SpellSpecificType spellSpec2 = spellInfo->GetSpellSpecific();
|
||||||
@@ -990,6 +966,25 @@ bool SpellInfo::IsAuraExclusiveBySpecificPerCasterWith(SpellInfo const* spellInf
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool SpellInfo::IsAuraExclusiveBySpecificPerCasterWith(SpellInfo const* spellInfo) const
|
||||||
|
{
|
||||||
|
SpellSpecificType spellSpec = GetSpellSpecific();
|
||||||
|
switch (spellSpec)
|
||||||
|
{
|
||||||
|
case SPELL_SPECIFIC_SEAL:
|
||||||
|
case SPELL_SPECIFIC_HAND:
|
||||||
|
case SPELL_SPECIFIC_AURA:
|
||||||
|
case SPELL_SPECIFIC_STING:
|
||||||
|
case SPELL_SPECIFIC_CURSE:
|
||||||
|
case SPELL_SPECIFIC_ASPECT:
|
||||||
|
case SPELL_SPECIFIC_JUDGEMENT:
|
||||||
|
case SPELL_SPECIFIC_WARLOCK_CORRUPTION:
|
||||||
|
return spellSpec == spellInfo->GetSpellSpecific();
|
||||||
|
default:
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
SpellCastResult SpellInfo::CheckShapeshift(uint32 form) const
|
SpellCastResult SpellInfo::CheckShapeshift(uint32 form) const
|
||||||
{
|
{
|
||||||
// talents that learn spells can have stance requirements that need ignore
|
// talents that learn spells can have stance requirements that need ignore
|
||||||
|
|||||||
Reference in New Issue
Block a user