Esempio n. 1
0
 private void ZhonyaTryCast()
 {
     if (Player.HasBuffOfType(BuffType.PhysicalImmunity) || Player.HasBuffOfType(BuffType.SpellImmunity) ||
         (Player.Spellbook.Spells[3].IsReady && Player.CharacterName == "Kayle") ||
         Player.IsZombie || Player.IsInvulnerable || Player.HasBuffOfType(BuffType.Invulnerability) ||
         Player.HasBuff("KindredRNoDeathBuff") ||
         Player.HasBuffOfType(BuffType.SpellShield) ||
         Player.AllShield > OktwCommon.GetIncomingDamage(Player))
     {
     }
     else
     {
         if (Zhonya.IsReady)
         {
             Zhonya.Cast();
         }
         else if (RepStopwatch.IsReady)
         {
             RepStopwatch.Cast();
         }
         else if (Stopwatch.IsReady)
         {
             Stopwatch.Cast();
         }
     }
 }