Exemple #1
0
 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);
 }
Exemple #2
0
        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);
        }
Exemple #3
0
 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);
 }
Exemple #4
0
 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);
 }
Exemple #5
0
 protected override bool EffectTarget(INormalEffect effect, ISkill srcSkill, ISkillPlayer caster, List <ISkillManager> targets)
 {
     return(effect.EffectManager(srcSkill, caster, targets));
 }
Exemple #6
0
 protected abstract bool RevokeEffect(INormalEffect effect, ISkill srcSkill, ISkillPlayer caster, List <T> targets);
Exemple #7
0
 protected override bool RevokeEffect(INormalEffect effect, ISkill srcSkill, ISkillPlayer caster, List <ISkill> targets)
 {
     return(this.UnEffectTarget(effect, srcSkill, caster, targets));
 }