Пример #1
0
 private void AddCooldown()
 {
     if (!Spell.IsAutoRepeating && TriggerEffect == null)
     {
         CasterUnit.Spells.AddCooldown(Spell, CasterItem);
     }
     if (Client != null)
     {
         if (!Spell.Attributes.HasFlag(SpellAttributes.StartCooldownAfterEffectFade) &&
             CasterItem != null)
         {
             SpellHandler.SendItemCooldown(Client, Spell.Id, CasterItem);
         }
     }
 }