Core: Minor cleanups (here and there)
- Fix warning - Fix some typos - Correct upper 'for' limit in LoadSkillLineAbilityMap - Remove use of magic number in a query related to security levels
This commit is contained in:
@@ -230,7 +230,7 @@ class Spell
|
||||
void EffectDistract(SpellEffIndex effIndex);
|
||||
void EffectPull(SpellEffIndex effIndex);
|
||||
void EffectSchoolDMG(SpellEffIndex effIndex);
|
||||
void EffectEnvirinmentalDMG(SpellEffIndex effIndex);
|
||||
void EffectEnvironmentalDMG(SpellEffIndex effIndex);
|
||||
void EffectInstaKill(SpellEffIndex effIndex);
|
||||
void EffectDummy(SpellEffIndex effIndex);
|
||||
void EffectTeleportUnits(SpellEffIndex effIndex);
|
||||
|
||||
@@ -72,7 +72,7 @@ pEffect SpellEffects[TOTAL_SPELL_EFFECTS]=
|
||||
&Spell::EffectUnused, // 4 SPELL_EFFECT_PORTAL_TELEPORT unused
|
||||
&Spell::EffectTeleportUnits, // 5 SPELL_EFFECT_TELEPORT_UNITS
|
||||
&Spell::EffectApplyAura, // 6 SPELL_EFFECT_APPLY_AURA
|
||||
&Spell::EffectEnvirinmentalDMG, // 7 SPELL_EFFECT_ENVIRONMENTAL_DAMAGE
|
||||
&Spell::EffectEnvironmentalDMG, // 7 SPELL_EFFECT_ENVIRONMENTAL_DAMAGE
|
||||
&Spell::EffectPowerDrain, // 8 SPELL_EFFECT_POWER_DRAIN
|
||||
&Spell::EffectHealthLeech, // 9 SPELL_EFFECT_HEALTH_LEECH
|
||||
&Spell::EffectHeal, // 10 SPELL_EFFECT_HEAL
|
||||
@@ -282,7 +282,7 @@ void Spell::EffectInstaKill(SpellEffIndex /*effIndex*/)
|
||||
m_caster->DealDamage(unitTarget, unitTarget->GetHealth(), NULL, NODAMAGE, SPELL_SCHOOL_MASK_NORMAL, NULL, false);
|
||||
}
|
||||
|
||||
void Spell::EffectEnvirinmentalDMG(SpellEffIndex /*effIndex*/)
|
||||
void Spell::EffectEnvironmentalDMG(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
if (!unitTarget || !unitTarget->isAlive())
|
||||
return;
|
||||
|
||||
@@ -1973,7 +1973,7 @@ void SpellMgr::LoadSpellThreats()
|
||||
ste.apPctMod = fields[3].GetFloat();
|
||||
|
||||
mSpellThreatMap[entry] = ste;
|
||||
count++;
|
||||
++count;
|
||||
} while (result->NextRow());
|
||||
|
||||
sLog->outString(">> Loaded %u SpellThreatEntries in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
|
||||
@@ -1988,7 +1988,7 @@ void SpellMgr::LoadSkillLineAbilityMap()
|
||||
|
||||
uint32 count = 0;
|
||||
|
||||
for (uint32 i = 0; i < sSpellMgr->GetSpellInfoStoreSize(); ++i)
|
||||
for (uint32 i = 0; i < sSkillLineAbilityStore.GetNumRows(); ++i)
|
||||
{
|
||||
SkillLineAbilityEntry const* SkillInfo = sSkillLineAbilityStore.LookupEntry(i);
|
||||
if (!SkillInfo)
|
||||
|
||||
Reference in New Issue
Block a user