mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-05-01 10:09:20 +02:00
Important updates
You're now able to use runes and spells on blocking items that are movable #30 Spell effects no longer appear on stairs like RealOTS.
This commit is contained in:
parent
76c925111d
commit
b7a150f324
@ -175,7 +175,11 @@ ReturnValue Combat::canDoCombat(Creature* caster, Tile* tile, bool aggressive)
|
||||
return RETURNVALUE_NOTENOUGHROOM;
|
||||
}
|
||||
|
||||
if (tile->hasProperty(CONST_PROP_IMMOVABLEBLOCKSOLID) && tile->hasProperty(CONST_PROP_UNLAY)) {
|
||||
/*if (tile->hasProperty(CONST_PROP_IMMOVABLEBLOCKSOLID) && tile->hasProperty(CONST_PROP_UNLAY)) {
|
||||
return RETURNVALUE_NOTENOUGHROOM;
|
||||
}*/
|
||||
|
||||
if (tile->hasProperty(CONST_PROP_IMMOVABLEBLOCKPATH)) {
|
||||
return RETURNVALUE_NOTENOUGHROOM;
|
||||
}
|
||||
|
||||
|
@ -692,7 +692,7 @@ bool Spell::playerRuneSpellCheck(Player* player, const Position& toPos)
|
||||
player->sendCancelMessage(RETURNVALUE_NOTENOUGHROOM);
|
||||
g_game.addMagicEffect(player->getPosition(), CONST_ME_POFF);
|
||||
return false;
|
||||
} else if (blockingSolid && tile->hasFlag(TILESTATE_BLOCKSOLID)) {
|
||||
} else if (blockingSolid && tile->hasProperty(CONST_PROP_BLOCKPROJECTILE) && tile->hasProperty(CONST_PROP_IMMOVABLEBLOCKSOLID)) {
|
||||
player->sendCancelMessage(RETURNVALUE_NOTENOUGHROOM);
|
||||
g_game.addMagicEffect(player->getPosition(), CONST_ME_POFF);
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user