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

@ -72,16 +72,11 @@ namespace Server.Spells.Fifth
// creature.ControlSlots = 2;
TimeSpan duration;
if (Core.AOS)
var duration = Core.Expansion switch
{
duration = TimeSpan.FromSeconds(2 * Caster.Skills.Magery.Fixed / 5.0);
}
else
{
duration = TimeSpan.FromSeconds(4.0 * Caster.Skills.Magery.Value);
}
Expansion.None => TimeSpan.FromSeconds(Caster.Skills.Magery.Value),
_ => TimeSpan.FromSeconds(2 * Caster.Skills.Magery.Fixed / 5.0)
};
SpellHelper.Summon(creature, Caster, 0x215, duration, false, false);
}