This commit is contained in:
parent
34d969712e
commit
d444b9ba5c
70 changed files with 569 additions and 495 deletions
|
|
@ -195,7 +195,7 @@ namespace Server.Spells
|
|||
int z = t.Z;
|
||||
|
||||
if( (t.Flags & TileFlag.Surface) == 0 )
|
||||
z -= TileData.ItemTable[t.ItemID & 0x3FFF].CalcHeight;
|
||||
z -= TileData.ItemTable[t.ItemID & TileData.MaxItemValue].CalcHeight;
|
||||
|
||||
p = new Point3D( t.X, t.Y, z );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -66,19 +66,18 @@ namespace Server.Spells.Spellweaving
|
|||
|
||||
private static bool IsValidLocation( Point3D location, Map map )
|
||||
{
|
||||
Tile lt = map.Tiles.GetLandTile( location.X, location.Y ); // Land Tiles
|
||||
LandTile lt = map.Tiles.GetLandTile( location.X, location.Y ); // Land Tiles
|
||||
|
||||
if( IsValidTile( lt.ID ) && lt.Z == location.Z )
|
||||
return true;
|
||||
|
||||
Tile[] tiles = map.Tiles.GetStaticTiles( location.X, location.Y ); // Static Tiles
|
||||
StaticTile[] tiles = map.Tiles.GetStaticTiles( location.X, location.Y ); // Static Tiles
|
||||
|
||||
for( int i = 0; i < tiles.Length; ++i )
|
||||
{
|
||||
Tile t = tiles[i];
|
||||
ItemData id = TileData.ItemTable[t.ID & 0x3FFF];
|
||||
StaticTile t = tiles[i];
|
||||
|
||||
int tand = t.ID & 0x3FFF;
|
||||
int tand = t.ID;
|
||||
|
||||
if( t.Z != location.Z )
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue