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:
Kamron Batman 2018-09-16 21:04:36 -07:00
parent 9542c79ea4
commit c155c82325
115 changed files with 644 additions and 1041 deletions

View file

@ -97,17 +97,17 @@ namespace Server.Misc
object surface = map.GetTopSurface(from.Location);
if (surface is LandTile)
if (surface is LandTile tile)
{
int id = ((LandTile)surface).ID;
int id = tile.ID;
return id >= 168 && id <= 171
|| id >= 310 && id <= 311;
}
if (surface is StaticTile)
if (surface is StaticTile staticTile)
{
int id = ((StaticTile)surface).ID;
int id = staticTile.ID;
return id >= 0x1796 && id <= 0x17B2;
}