Пример #1
0
        public void Apply(FightActor fighterTrigger, BuffTriggerType trigger, object token)
        {
            // to avoid recursion cannot be triggered twice in the same sequence (spell cast, move, turn end/begin...)

            if (m_lastTriggeredSequence != null && m_lastTriggeredSequence.IsChild(fighterTrigger.Fight.CurrentSequence))
            {
                return;
            }

            m_lastTriggeredSequence = fighterTrigger.Fight.CurrentSequence;
            base.Apply();
            ApplyTrigger?.Invoke(this, fighterTrigger, trigger, token);
        }
Пример #2
0
Файл: Enemy.cs Проект: rbrt/pk
 public void SetFightSequence(FightSequence sequence)
 {
     fightSequence = sequence;
 }
Пример #3
0
Файл: Enemy.cs Проект: rbrt/pk
 public void SetFightSequence(FightSequence sequence)
 {
     fightSequence = sequence;
 }
Пример #4
0
 public void SetFightSequence(FightSequence fightSequence)
 {
     this.fightSequence = fightSequence;
 }
Пример #5
0
 public static void SendSequenceEndMessage(IPacketReceiver client, FightSequence sequence)
 {
     client.Send(new SequenceEndMessage((short)sequence.Id, sequence.Author.Id, (sbyte)sequence.Type));
 }
Пример #6
0
 public static void SendSequenceStartMessage(IPacketReceiver client, FightSequence sequence)
 {
     client.Send(new SequenceStartMessage((sbyte)sequence.Type, sequence.Author.Id));
 }
Пример #7
0
 public void SetFightSequence(FightSequence fightSequence)
 {
     this.fightSequence = fightSequence;
 }