Modernization Fixes & Updates to Default Values (#3)

This commit is contained in:
Kamron Batman 2018-10-28 00:33:16 -07:00 • committed by GitHub
parent 445eddff68
commit dcf64091b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
768 changed files with 10507 additions and 14196 deletions

View file

@ -61,7 +61,7 @@ namespace Server.Spells.Sixth
int itemID = eastToWest ? 0x3967 : 0x3979;
TimeSpan duration = TimeSpan.FromSeconds(3.0 + Caster.Skills[SkillName.Magery].Value / 3.0);
TimeSpan duration = TimeSpan.FromSeconds(3.0 + Caster.Skills.Magery.Value / 3.0);
for (int i = -2; i <= 2; ++i)
{
@ -171,8 +171,8 @@ namespace Server.Spells.Sixth
if (Core.AOS)
{
duration = 2.0 + ((int)(m_Caster.Skills[SkillName.EvalInt].Value / 10) -
(int)(m.Skills[SkillName.MagicResist].Value / 10));
duration = 2.0 + ((int)(m_Caster.Skills.EvalInt.Value / 10) -
(int)(m.Skills.MagicResist.Value / 10));
if (!m.Player)
duration *= 3.0;
@ -182,7 +182,7 @@ namespace Server.Spells.Sixth
}
else
{
duration = 7.0 + m_Caster.Skills[SkillName.Magery].Value * 0.2;
duration = 7.0 + m_Caster.Skills.Magery.Value * 0.2;
}
m.Paralyze(TimeSpan.FromSeconds(duration));