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); }
public void SetFightSequence(FightSequence sequence) { fightSequence = sequence; }
public void SetFightSequence(FightSequence fightSequence) { this.fightSequence = fightSequence; }
public static void SendSequenceEndMessage(IPacketReceiver client, FightSequence sequence) { client.Send(new SequenceEndMessage((short)sequence.Id, sequence.Author.Id, (sbyte)sequence.Type)); }
public static void SendSequenceStartMessage(IPacketReceiver client, FightSequence sequence) { client.Send(new SequenceStartMessage((sbyte)sequence.Type, sequence.Author.Id)); }