• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Monster pushItems() bug

Newone0

Member
Joined
Nov 22, 2021
Messages
59
Reaction score
7
The monster only moves objects in front of it, even if they are not moving in that direction. If it goes in a different direction than it is facing, it will not move the object, but it should.
I think problem is here(monster.cpp):

C++:
if (result && (canPushItems() || canPushCreatures())) {
        const Position& pos = Spells::getCasterPosition(this, direction);
        Tile* posTile = g_game.map.getTile(pos);
        if (posTile) {
            if (canPushItems()) {
                Monster::pushItems(posTile);
            }



Spells::getCasterPosition(this, direction); returns the side the monster is facing, not which side it is going
This is very disturbing in PVP

Video:

This bug is in canary and i think in tfs too
 
Back
Top