Fixes chaos damage bug with the spell system. Fixes various small other bugs. Fixes more merge cast type checks and uses default values.
This commit is contained in:
parent
9542c79ea4
commit
c155c82325
115 changed files with 644 additions and 1041 deletions
|
|
@ -71,9 +71,9 @@ namespace Server.Spells.Fifth
|
|||
duration *= 0.75;
|
||||
}
|
||||
|
||||
if (m is PlagueBeastLord)
|
||||
if (m is PlagueBeastLord lord)
|
||||
{
|
||||
((PlagueBeastLord)m).OnParalyzed(Caster);
|
||||
lord.OnParalyzed(Caster);
|
||||
duration = 120;
|
||||
}
|
||||
|
||||
|
|
@ -99,8 +99,8 @@ namespace Server.Spells.Fifth
|
|||
|
||||
protected override void OnTarget(Mobile from, object o)
|
||||
{
|
||||
if (o is Mobile)
|
||||
m_Owner.Target((Mobile)o);
|
||||
if (o is Mobile mobile)
|
||||
m_Owner.Target(mobile);
|
||||
}
|
||||
|
||||
protected override void OnTargetFinish(Mobile from)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue