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
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue