protected override bool RevokeEffect(INormalEffect effect, ISkill srcSkill, ISkillPlayer caster, List <ISkillManager> targets) { foreach (var target in targets) { foreach (int buffId in effect.BuffId) { target.ForceSyncBuff(buffId, true); } } return(true); }
protected override bool RevokeEffect(INormalEffect effect, ISkill srcSkill, ISkillPlayer caster, List <ISkillPlayer> targets) { base.RevokeEffect(effect, srcSkill, caster, targets); var eventEffect = effect as FootballEventPropPlusEffect; if (null != eventEffect) { eventEffect.UnEffecttPlayers(srcSkill, caster, targets); } return(true); }
protected override bool UnEffectTarget(INormalEffect effect, ISkill srcSkill, ISkillPlayer caster, List <ISkill> targets) { if (null != effect.SrcModelSetting && null != caster) { effect.RemoveShowModel(srcSkill, caster, false); } foreach (var target in targets) { effect.UnEffectSkills(srcSkill, caster, target); } return(true); }
protected override bool UnEffectTarget(INormalEffect effect, ISkill srcSkill, ISkillPlayer caster, List <ISkillManager> targets) { if (null != effect.SrcModelSetting && null != caster) { effect.RemoveShowModel(srcSkill, caster, false); } foreach (var target in targets) { foreach (int buffId in effect.BuffId) { target.RemoveBuff(buffId, srcSkill.InnerId); } } return(true); }
protected override bool EffectTarget(INormalEffect effect, ISkill srcSkill, ISkillPlayer caster, List <ISkillManager> targets) { return(effect.EffectManager(srcSkill, caster, targets)); }
protected abstract bool RevokeEffect(INormalEffect effect, ISkill srcSkill, ISkillPlayer caster, List <T> targets);
protected override bool RevokeEffect(INormalEffect effect, ISkill srcSkill, ISkillPlayer caster, List <ISkill> targets) { return(this.UnEffectTarget(effect, srcSkill, caster, targets)); }