7 Commits

Author SHA1 Message Date
bashermens
43f496d372 Merge pull request #143 from azerothcore/master
Update (crashfix movement generator)
2026-01-09 07:43:25 +01:00
bashermens
b6124e2727 Merge pull request #142 from mod-playerbots/hermensbas-removed-dead-code
Legacy/dead code
2026-01-09 07:42:16 +01:00
sudlud
8785a9a726 fix(Conf): remove unused config option Logger.ahbot (#24355) 2026-01-09 07:37:44 +01:00
Localhost
a43dda6444 fix(Core/Movement): Crash FlightPathMovementGenerator (#24347) 2026-01-09 07:37:29 +01:00
bashermens
ccc17be7e1 Legacy/dead code 2026-01-09 01:13:14 +01:00
bashermens
54914d0854 Merge pull request #141 from hermensbas/fix/hotfix_till_core_merge
[HOTFIX] Wrong class/race learning throw skill
2026-01-09 00:51:39 +01:00
bash
dbfc8001a2 wrong class/race learning throw skill 2026-01-09 00:19:31 +01:00
4 changed files with 6 additions and 5 deletions

View File

@@ -718,7 +718,6 @@ Logger.spells.scripts=2,Console Errors
Logger.playerbots=5,Console Playerbots
#Logger.achievement=4,Console Server
#Logger.addon=4,Console Server
#Logger.ahbot=4,Console Server
#Logger.auctionHouse=4,Console Server
#Logger.autobroadcast=4, Console Server
#Logger.bg.arena=4,Console Server

View File

@@ -12346,6 +12346,10 @@ bool Player::IsSpellFitByClassAndRace(uint32 spell_id) const
if (_spell_idx->second->ClassMask && (_spell_idx->second->ClassMask & classmask) == 0)
continue;
// skip wrong class and race skill saved in SkillRaceClassInfo.dbc
if (!GetSkillRaceClassInfo(_spell_idx->second->SkillLine, getRace(), getClass()))
continue;
return true;
}

View File

@@ -2052,8 +2052,6 @@ public:
void OutDebugInfo() const;
std::string GetDebugInfo() const override;
bool m_cannotReachTarget;
//----------- Public variables ----------//
uint32 m_extraAttacks;
DualWieldMode _dualWieldMode;

View File

@@ -389,10 +389,10 @@ void FlightPathMovementGenerator::LoadPath(Player* player)
LOG_ERROR("movement.flightpath", "Failed to build correct path for player: {}. Current node: {}, max nodes: {}. Paths: {}. Player pos: {}.", player->GetGUID().ToString(), GetCurrentNode(), i_path.size(), paths, player->GetPosition().ToString());
// Lets choose the second last element so that a player would still have some flight.
if (int(i_path.size()) - 2 >= 0)
if (i_path.size() >= 2)
i_currentNode = uint32(i_path.size() - 2);
else
i_currentNode = uint32(i_path.size() - 1);
i_currentNode = 0;
}
}