By default all delays of magery spells are based on circles. But you can just override GetCastDelay() method in any spell to set your custom time and conditions.
For example we want add delay conditions to GreaterHealSpell:
C#:
Expand Collapse Copy
        public override TimeSpan GetCastDelay()
        {
            if (Caster.Hits >= Caster.HitsMax / 2) //if the caster has good health, he heals quickly.
                return base.GetCastDelay();
            else
                return TimeSpan.FromSeconds(5); //if he is significantly injured, then the delay increases.
        }
 

Donations

Total amount
$30.00
Goal
$500.00

Shards

Back