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
|
|
@ -80,15 +80,14 @@ namespace Server.Multis
|
|||
|
||||
int zavg = Map.GetAverageZ(X + xOffset, Y + yOffset);
|
||||
Point3D loc = new Point3D(X + xOffset, Y + yOffset, zavg + zOffset);
|
||||
BaseCreature bc = m as BaseCreature;
|
||||
|
||||
if (bc != null)
|
||||
if (m is BaseCreature bc)
|
||||
{
|
||||
bc.RangeHome = wanderRange;
|
||||
bc.Home = loc;
|
||||
}
|
||||
|
||||
if (m is BaseVendor || m is Banker)
|
||||
if (m is BaseVendor)
|
||||
m.Direction = Direction.South;
|
||||
|
||||
m.MoveToWorld(loc, Map);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue