This would take SO much time to do because some races and classes level up faster than others... and others much slower than the rest.
Wait... I could be wrong... maybe I'm thinking up skill leveling.
And I thought spell stacking was bad =(
if (buffs[bff].spellid == spell_id)
{
if (spells[spell_id].SpellAffectIndex == 92)
blocked = true;
else if (IsDoT(spell_id) && IsNPC() && !GetOwner() && buffs[bff].casterid != caster->GetID())
continue; //lolstacking :)
else if (buffs[bff].casterlevel > caster->GetLevel() || buffs[bff].soulbonded == 1)
blocked = true;
else
fade[bff] = 2;
}