public void RemoveIcon() { if (buffPanel != null) { buffPanel.RemoveIcon(buff.buff.ToString()); } }
} //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