Example #1
0
        public Buff(short id, byte level, Character sender = null)
        {
            Card   = ServerManager.GetCard(id);
            Level  = level;
            Sender = sender;

            if (Card?.BCards != null &&
                Card.Duration == 0 &&
                Card.BCards.Any(s => s.Type == (byte)CardType.SpecialActions && s.SubType == (byte)AdditionalTypes.SpecialActions.Hide / 10))
            {
                Card.Duration = ServerManager.RandomNumber(1, 31) * 10;
            }
        }
Example #2
0
 public Buff(short id, int level)
 {
     Card  = ServerManager.GetCard(id);
     Level = level;
 }
Example #3
0
 public Buff(short id, int level, bool isPermaBuff = false)
 {
     Card        = ServerManager.GetCard(id);
     Level       = level;
     IsPermaBuff = isPermaBuff;
 }