/// <summary>
/// Determines wether this spell is compatible with given spell
/// and therefore overwritable by better versions
/// spells that are overwritable cannot stack
/// </summary>
/// <param name="compare"></param>
/// <returns></returns>
public override bool IsOverwritable(GameSpellEffect compare)
{
if (Spell.EffectGroup != 0)
return Spell.EffectGroup == compare.Spell.EffectGroup;
if (base.IsOverwritable(compare) == false) return false;
if (Spell.Duration > 0 && compare.Concentration > 0)
return compare.Spell.Value >= Spell.Value;
return compare.SpellHandler.SpellLine.IsBaseLine ==
SpellLine.IsBaseLine;
}Return to “%s” DOL Development Discussion
Users browsing this forum: Bing [Bot] and 1 guest