Code cleanup (#188)
This commit is contained in:
parent
df53c16620
commit
010fd9402a
185 changed files with 1052 additions and 1271 deletions
|
|
@ -169,14 +169,11 @@ namespace Server.Spells.Sixth
|
|||
|
||||
if (Core.AOS)
|
||||
{
|
||||
duration = 2.0 + ((int)(m_Caster.Skills.EvalInt.Value / 10) -
|
||||
(int)(m.Skills.MagicResist.Value / 10));
|
||||
duration = Math.Max(
|
||||
2.0 + ((int)(m_Caster.Skills.EvalInt.Value / 10) - (int)(m.Skills.MagicResist.Value / 10)), 0.0);
|
||||
|
||||
if (!m.Player)
|
||||
duration *= 3.0;
|
||||
|
||||
if (duration < 0.0)
|
||||
duration = 0.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue