public override bool ApplyInstant(FormationUnit performer, FormationUnit target, Effect effect) { if (target == null) { return(false); } if (target.Character.IsMonster) { return(false); } var heroTarget = (Hero)target.Character; target.SetCombatAnimation(false); heroTarget.CurrentMode = heroTarget.HeroClass.Modes.Find(mode => mode.Id == Mode); target.SetCombatAnimation(true); if (RaidSceneManager.RaidInterface.RaidPanel.SelectedUnit == target) { RaidSceneManager.RaidInterface.RaidPanel.BannerPanel.SkillPanel.UpdateSkillPanel(); } return(true); }