Example #1
0
 public void RemoveIcon()
 {
     if (buffPanel != null)
     {
         buffPanel.RemoveIcon(buff.buff.ToString());
     }
 }
Example #2
0
    }    //UsePassive

    public override void DisableAbilityPassive()
    {
        //apply effect
        buffPanel = hero.GetComponentInChildren <BuffPanel>();
        hero.hasPermanentImmunity = false;
        List <HeroManager> enemies = GameManager.Instance.EnemyHeroList(hero);

        foreach (HeroManager enemy in enemies)
        {
            enemy.chance += chanceReduction;

            //RemoveIcon
            BuffPanel buffPanelEnemy = enemy.gameObject.GetComponentInChildren <BuffPanel>();
            buffPanelEnemy.RemoveIcon("UnluckyAkroma");
        }

        buffPanel.RemoveIcon("PermanentImmunity");

        base.DisableAbilityPassive();
    }    //Disable