public virtual void OnApplied(Sprite Affected, Debuff debuff)
 {
     if (Affected.Debuffs.TryAdd(debuff.Name, debuff))
     {
         Display(Affected);
     }
 }
Exemple #2
0
 public virtual void OnEnded(Sprite Affected, Debuff debuff)
 {
     if (Affected.Debuffs.TryRemove(debuff.Name, out var removed))
     {
         (Affected as Aisling)?.Client
         .Send(new ServerFormat3A(Icon, byte.MinValue));
     }
 }
Exemple #3
0
        public virtual void OnEnded(Sprite Affected, Debuff debuff)
        {
            if (Affected is Aisling)
            {
                (Affected as Aisling)
                .Client
                .Send(new ServerFormat3A(Icon, byte.MinValue));
            }

            Affected.Debuffs.Remove(debuff);
        }
 public virtual void OnDurationUpdate(Sprite Affected, Debuff buff)
 {
     Display(Affected);
 }
Exemple #5
0
 public virtual void OnApplied(Sprite Affected, Debuff debuff)
 {
     Display(Affected);
     Affected.Debuffs.Add(debuff);
 }