All pastes #950049 Raw Edit

Zeug

public cpp v1 · immutable
·published 2008-03-20 08:50 UTC
rendered paste body
    for (uint32 id = 0; id < sSpellStore.GetNumRows(); ++id)    {        SpellEntry const* spellInfo = sSpellStore.LookupEntry(id);        if (!spellInfo)            continue;        for (int effectId = 0; effectId < 3; ++effectId)        {            if (spellInfo->Effect[effectId] != SPELL_EFFECT_APPLY_AURA ||            (spellInfo->EffectApplyAuraName[effectId] != SPELL_AURA_ADD_FLAT_MODIFIER &&            spellInfo->EffectApplyAuraName[effectId] != SPELL_AURA_ADD_PCT_MODIFIER  &&            spellInfo->EffectApplyAuraName[effectId] != SPELL_AURA_ADD_TARGET_TRIGGER))                continue;            if (!(spellInfo->EffectItemType[effectId]) && !GetSpellAffection(id,effectId))                sLog.outErrorDb("Spell %u (%s) misses spell_affect for effect %u",id,spellInfo->SpellName[sWorld.GetDBClang()], effectId);        }    }