Beispiel #1
0
        void OnDead(FightActor fighter, FightActor killer)
        {
            if (fighter.IsFriendlyWith(killer))
            {
                return;
            }

            m_kills++;
        }
Beispiel #2
0
        void OnBeforeDamageInflicted(FightActor fighter, Damage damage)
        {
            if (fighter.IsFriendlyWith(damage.Source))
            {
                return;
            }

            Target = fighter;
        }
Beispiel #3
0
        void OnFightPointsVariation(FightActor actor, ActionsEnum action, FightActor source, FightActor target, short delta)
        {
            if (delta >= 0)
            {
                return;
            }

            if (actor.IsFriendlyWith(source))
            {
                return;
            }

            if (action != ActionsEnum.ACTION_CHARACTER_ACTION_POINTS_LOST)
            {
                return;
            }

            UpdateStatus(ChallengeStatusEnum.FAILED, source);
        }
Beispiel #4
0
 // METHODS
 public override bool DoesSeeTrigger(FightActor fighter)
 {
     return(this.VisibleState != GameActionFightInvisibilityStateEnum.INVISIBLE || fighter.IsFriendlyWith(base.Caster));
 }
Beispiel #5
0
 public override bool DoesSeeTrigger(FightActor fighter) => VisibleState != GameActionFightInvisibilityStateEnum.INVISIBLE || fighter.IsFriendlyWith(Caster);