Esempio n. 1
0
        public static bool IsSpellShielded(this Obj_AI_Hero unit)
        {
            if (GameObjects.Player.HasBuffOfType(BuffType.SpellShield))
            {
                return(true);
            }

            if (GameObjects.Player.HasBuffOfType(BuffType.SpellImmunity))
            {
                return(true);
            }

            //Sivir E
            if (unit.GetLastCastedSpell().Name == "SivirE" && (Variables.TickCount - unit.GetLastCastedSpell().EndTime) < 300)
            {
                return(true);
            }

            //Morganas E
            if (unit.GetLastCastedSpell().Name == "BlackShield" && (Variables.TickCount - unit.GetLastCastedSpell().EndTime) < 300)
            {
                return(true);
            }

            //Nocturnes E
            if (unit.GetLastCastedSpell().Name == "NocturneShit" && (Variables.TickCount - unit.GetLastCastedSpell().EndTime) < 300)
            {
                return(true);
            }

            return(false);
        }