Beispiel #1
0
        private bool ListenBuffAdd(EvtBuffAdd evt)
        {
            BaseActor actor = Singleton <EventManager> .Instance.GetActor(evt.targetID);

            bool flag = (evt.abilityState & (AbilityState.Tied | AbilityState.TargetLocked | AbilityState.Fragile | AbilityState.Weak | AbilityState.AttackSpeedDown | AbilityState.MoveSpeedDown | AbilityState.Frozen | AbilityState.Poisoned | AbilityState.Burn | AbilityState.Paralyze | AbilityState.Stun | AbilityState.Bleed)) != AbilityState.None;

            if (((actor != null) && (actor is AvatarActor)) && (Singleton <AvatarManager> .Instance.IsLocalAvatar(actor.runtimeID) && flag))
            {
                this._tempBeAddedDebuffNum++;
                if (this._tempBeAddedDebuffNum > this.targetBeAddedDebuffNum)
                {
                    this.Fail();
                }
            }
            return(false);
        }
Beispiel #2
0
        private bool ListenBuffAdd(EvtBuffAdd evt)
        {
            BaseActor actor = Singleton <EventManager> .Instance.GetActor(evt.targetID);

            bool flag = (evt.abilityState & (AbilityState.Tied | AbilityState.TargetLocked | AbilityState.Fragile | AbilityState.Weak | AbilityState.AttackSpeedDown | AbilityState.MoveSpeedDown | AbilityState.Frozen | AbilityState.Poisoned | AbilityState.Burn | AbilityState.Paralyze | AbilityState.Stun | AbilityState.Bleed)) != AbilityState.None;

            if (((actor != null) && (actor is MonsterActor)) && flag)
            {
                if (!this._addDebuffMonsterList.Contains(actor.runtimeID))
                {
                    this._addDebuffMonsterList.Add(actor.runtimeID);
                }
                if (this._addDebuffMonsterList.Count >= this.targetDebuffAddNum)
                {
                    this.Finish();
                }
            }
            return(false);
        }
Beispiel #3
0
        private bool OnBuffAdd(EvtBuffAdd evt)
        {
            bool             flag  = true;
            BaseAbilityActor actor = Singleton <EventManager> .Instance.GetActor <BaseAbilityActor>(evt.targetID);

            if (!Singleton <AvatarManager> .Instance.IsLocalAvatar(base.actor.runtimeID) && (actor != null))
            {
                if (Singleton <EventManager> .Instance.GetActor <AvatarActor>(Singleton <AvatarManager> .Instance.GetLocalAvatar().GetRuntimeID()).MuteOtherQTE)
                {
                    return(false);
                }
                MonsterActor qteTarget = actor as MonsterActor;
                foreach (QTECondition condition in this.config.TriggerConditions)
                {
                    if (condition.QTEType == QTEConditionType.QTEBuffTag)
                    {
                        flag &= this.QTERangeCheck(qteTarget, condition.QTERange);
                        bool flag2 = false;
                        for (int i = 0; i < condition.QTEValues.Length; i++)
                        {
                            flag2 |= evt.abilityState == ((int)Enum.Parse(typeof(AbilityState), condition.QTEValues[i]));
                        }
                        flag &= flag2;
                    }
                    else if (condition.QTEType == QTEConditionType.QTEAnimationTag)
                    {
                        flag = false;
                        break;
                    }
                }
                if ((flag && !this._avatarActor.IsSwitchInCD()) && !this._avatarActor.AllowOtherSwitchIn)
                {
                    this.AddQTETarget(qteTarget);
                    this._avatarActor.EnableQTEAttack(this.config.QTEName);
                    this._qteMaxTimer.Reset(true);
                }
            }
            return(false);
        }
Beispiel #4
0
 private bool OnBuffAdd(EvtBuffAdd evt)
 {
     return(false);
 }