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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue