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
|
|
@ -19,7 +19,7 @@ namespace Server.Spells.Chivalry
|
|||
|
||||
public override bool ClearHandsOnCast => false;
|
||||
|
||||
// public override int CastDelayBase => 1;
|
||||
public override TimeSpan CastDelayMinimum => TimeSpan.FromSeconds(Core.SA ? 0.5 : 0.25);
|
||||
|
||||
public override int CastRecoveryBase => 7;
|
||||
|
||||
|
|
@ -34,20 +34,15 @@ namespace Server.Spells.Chivalry
|
|||
|
||||
if (Caster.TithingPoints < RequiredTithing)
|
||||
{
|
||||
Caster.SendLocalizedMessage(
|
||||
1060173,
|
||||
RequiredTithing
|
||||
.ToString()
|
||||
); // You must have at least ~1_TITHE_REQUIREMENT~ Tithing Points to use this ability,
|
||||
// You must have at least ~1_TITHE_REQUIREMENT~ Tithing Points to use this ability,
|
||||
Caster.SendLocalizedMessage(1060173, RequiredTithing.ToString());
|
||||
return false;
|
||||
}
|
||||
|
||||
if (Caster.Mana < mana)
|
||||
{
|
||||
Caster.SendLocalizedMessage(
|
||||
1060174,
|
||||
mana.ToString()
|
||||
); // You must have at least ~1_MANA_REQUIREMENT~ Mana to use this ability.
|
||||
// You must have at least ~1_MANA_REQUIREMENT~ Mana to use this ability.
|
||||
Caster.SendLocalizedMessage(1060174, mana.ToString());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -67,20 +62,15 @@ namespace Server.Spells.Chivalry
|
|||
|
||||
if (Caster.TithingPoints < requiredTithing)
|
||||
{
|
||||
Caster.SendLocalizedMessage(
|
||||
1060173,
|
||||
RequiredTithing
|
||||
.ToString()
|
||||
); // You must have at least ~1_TITHE_REQUIREMENT~ Tithing Points to use this ability,
|
||||
// You must have at least ~1_TITHE_REQUIREMENT~ Tithing Points to use this ability,
|
||||
Caster.SendLocalizedMessage(1060173, RequiredTithing.ToString());
|
||||
return false;
|
||||
}
|
||||
|
||||
if (Caster.Mana < mana)
|
||||
{
|
||||
Caster.SendLocalizedMessage(
|
||||
1060174,
|
||||
mana.ToString()
|
||||
); // You must have at least ~1_MANA_REQUIREMENT~ Mana to use this ability.
|
||||
// You must have at least ~1_MANA_REQUIREMENT~ Mana to use this ability.
|
||||
Caster.SendLocalizedMessage(1060174, mana.ToString());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,9 @@ namespace Server.Spells.Chivalry
|
|||
{
|
||||
}
|
||||
|
||||
public override TimeSpan CastDelayBase => TimeSpan.FromSeconds(1.5);
|
||||
// https://uo.com/wiki/ultima-online-wiki/publish-notes/publish-108/ - 1.5 -> 2.0
|
||||
// According to tests, this includes the 0.25s added penalty, so we are adjusting to 1.75s base.
|
||||
public override TimeSpan CastDelayBase => TimeSpan.FromSeconds(Core.EJ ? 1.75 : 1.5);
|
||||
|
||||
public override double RequiredSkill => 5.0;
|
||||
public override int RequiredMana => 20;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue