forgottenserver icon indicating copy to clipboard operation
forgottenserver copied to clipboard

Summon with !hasFollowPath do not walk

Open floki21uu opened this issue 2 years ago • 0 comments

This has to do with "randomStepping = true;" in bool Monster::getNextStep(Direction& direction, uint32_t& flags) in monster.cpp. Note: This should affect only monster's summon, so when isSummon() && getMaster->getPlayer() returns. wwwww I suggest these changes: if (isSummon() && getMaster()->getPlayer()) { randomStepping = false; // to handle player's summons } else if (isSummon() && !getMaster()->getPlayer() && !hasFollowPath) { randomStepping = true; // to handle monster's summons without a path } else if (!followCreature || !hasFollowPath) { randomStepping = true; // to handle monsters without a path } else if (followCreature) { randomStepping = false; // to handle monsters with a path } this is tested and works but the code looks messy af XD notice ghoul and mummy are necromancer's summons. gif with the changes: weeeeew

floki21uu avatar Mar 20 '23 20:03 floki21uu