- Cast Darkness
- Refresh
- Cast Darkness
Result:
Second cast will take 0 (set by first cast) as start time and after darkness wears off it will set time to
0 + ( time_at_second_darkness_expire - time_at_second_darkness_cast)*time_flow.
Expected:
Time must be
time_at_first_darkness_cast + ( time_at_second_darkness_expire - time_at_second_darkness_cast)*time_flow
Same issue will occur this spell is cast by two different units (eg.Rubick Spell Steal)
Result:
Second cast will take 0 (set by first cast) as start time and after darkness wears off it will set time to
0 + ( time_at_second_darkness_expire - time_at_second_darkness_cast)*time_flow.
Expected:
Time must be
time_at_first_darkness_cast + ( time_at_second_darkness_expire - time_at_second_darkness_cast)*time_flow
Same issue will occur this spell is cast by two different units (eg.Rubick Spell Steal)