fix: Fixes cast spell speeds for various expansions (#1178)
* Adds 0.25s for all spells for SA+ Era * Fixes Summon Creature & Blade Spirits cast delay * Fixes minimum cast delay for chivalry spells * Fixes poison strike and wither spells
This commit is contained in:
parent
aa270ac868
commit
8a2c0ead3d
8 changed files with 62 additions and 45 deletions
|
|
@ -91,12 +91,16 @@ namespace Server.Spells.Fifth
|
|||
|
||||
public override TimeSpan GetCastDelay()
|
||||
{
|
||||
if (Core.AOS)
|
||||
var delay = base.GetCastDelay() * (Core.AOS ? 5 : 4);
|
||||
|
||||
// SA made everything 0.25 slower, but that is applied after the scalar
|
||||
// So remove 0.25 * 5 to compensate
|
||||
if (Core.SA)
|
||||
{
|
||||
return TimeSpan.FromTicks(base.GetCastDelay().Ticks * 5);
|
||||
delay -= TimeSpan.FromSeconds(1.25);
|
||||
}
|
||||
|
||||
return base.GetCastDelay() + TimeSpan.FromSeconds(6.0);
|
||||
return delay;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue