示例#1
0
 public virtual void OnApplied(Sprite Affected, Debuff debuff)
 {
     if (Affected.Debuffs.TryAdd(debuff.Name, debuff))
     {
         Display(Affected);
     }
 }
示例#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));
     }
 }
示例#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);
        }
示例#4
0
 public virtual void OnDurationUpdate(Sprite Affected, Debuff buff)
 {
     Display(Affected);
 }
示例#5
0
 public virtual void OnApplied(Sprite Affected, Debuff debuff)
 {
     Display(Affected);
     Affected.Debuffs.Add(debuff);
 }