Example #1
0
        static Consideration getNoBuffFromSpell(BlueprintAbility spell, bool hostile = true, BlueprintBuff specific_buff = null)
        {
            var buff = specific_buff ?? extractBuffFromSpell(spell);

            if (buff == null)
            {
                return(null);
            }

            if (spell.HasAreaEffect())
            {
                return(hostile ? getNoBuffsAroundEnemiesConsideration(buff) : getNoBuffsAroundonAlliesConsideration(buff));
            }
            else
            {
                return(getSingleTargetNoBuff(buff));
            }
        }