fix: Fixes spell durations for older expansions (#1119)

This commit is contained in:
Kamron Batman 2022-07-15 12:49:14 -07:00 • committed by GitHub
parent d6d02de296
commit 56c97ca84a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 68 additions and 59 deletions

View file

@ -353,9 +353,8 @@ namespace Server.Spells
}
public static TimeSpan GetDuration(Mobile caster, Mobile target) =>
Core.AOS
? TimeSpan.FromSeconds(6 * caster.Skills.EvalInt.Fixed / 50 + 1)
: TimeSpan.FromSeconds(caster.Skills.Magery.Value * 1.2);
// TODO: Is this accurate for Curse? Sources say it is magery. Should confirm at least for newest era.
TimeSpan.FromSeconds(6 * (Core.AOS ? caster.Skills.EvalInt.Value : caster.Skills.Magery.Value) / 5.0);
public static double GetOffsetScalar(Mobile caster, Mobile target, bool curse)
{