//Public Methods public void CastSecret(BtlCtrlCharacter owner, Divine.Secret type, List <BtlCtrlCharacter> targets, Action <BtlCtrlSpell> onCastFinish) { BtlCtrlSpell_SecretRevive revive = new BtlCtrlSpell_SecretRevive(); revive.Init(SpellEffectOnChar.Appear, 0, 0, ""); revive.SetOwnerAndIndex(owner, -1); revive.Event_ActionGenerated += OnActionGenerated; revive.StartSpell(targets, onCastFinish); }
private void OnSecret(long id, Divine.Secret secretType, List <long> targets) { _secretController.CastSecret(GetCharacter((int)id), secretType, GetCharacters(targets), OnSpellCasted); }