mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 19:06:49 +01:00
Core/Spells: Removed unneccessary checks from skill spell effects
This commit is contained in:
@@ -2307,9 +2307,6 @@ void Spell::EffectLearnSkill()
|
||||
return;
|
||||
|
||||
uint32 skillid = effectInfo->MiscValue;
|
||||
if (effectInfo->Effect == SPELL_EFFECT_SKILL && playerTarget->GetSkillStep(skillid) >= damage)
|
||||
return;
|
||||
|
||||
SkillRaceClassInfoEntry const* rcEntry = sDB2Manager.GetSkillRaceClassInfo(skillid, playerTarget->GetRace(), playerTarget->GetClass());
|
||||
if (!rcEntry)
|
||||
return;
|
||||
@@ -4555,7 +4552,7 @@ void Spell::EffectSkill()
|
||||
return;
|
||||
|
||||
uint32 skillid = effectInfo->MiscValue;
|
||||
if (effectInfo->Effect == SPELL_EFFECT_SKILL && playerTarget->GetSkillStep(skillid) >= damage)
|
||||
if (playerTarget->GetSkillStep(skillid) >= damage)
|
||||
return;
|
||||
|
||||
SkillRaceClassInfoEntry const* rcEntry = sDB2Manager.GetSkillRaceClassInfo(skillid, playerTarget->GetRace(), playerTarget->GetClass());
|
||||
|
||||
Reference in New Issue
Block a user