Commit graph

7 commits

Author SHA1 Message Date
Claude
0ad5f1d345
fix: skip playerbots so bot re-rolls do not spam the server
Some checks failed
core-build / build (pull_request) Has been cancelled
PlayerbotFactory calls Player::GiveLevel() in six places while randomising a
bot, and GiveLevel fires OnPlayerLevelChanged exactly as a real ding does. On
a Playerbots realm that means every bot re-roll past level 10/20/.../80 sends
a server-wide broadcast plus a raid warning and hands the bot gold and two
reward items. Turning off CongratsPerLevel.Enable does not help: the
reward-level announcements sit outside that gate.

Adds Congrats.SkipBots (default 1). The bot test is guarded by
#ifdef MOD_PLAYERBOTS, which the core defines for every module when
mod-playerbots is present, so a core built without it is unaffected.

Also adds the missing `override` on OnPlayerLogin. The signature already
matched the base, so behaviour is unchanged -- it just stops a future
signature change from silently detaching the hook.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019vTNrJGsprcjdjjjDJD5ZM
2026-09-03 17:21:11 +00:00
Walter Pagani
494cde182c
feat. Add option to Learn or cast spells (#30)
* feat. Add option to Learn or cast spells

* boolean learn attribute
2023-09-05 05:17:05 -03:00
Walter Pagani
8e4aef41dc
feat. Move awards to database and enable races/classes (#27)
* feat. Move awards to database and enable races/classes

* feat. Allow multiple records in the table

* feat. Check that the values in the register are greater than zero
2023-07-19 07:17:47 -03:00
SoulSeekkor
f4e142d9e2
fix bad config value (#17) 2022-03-03 10:43:03 +07:00
Micrah
a034126731
update 2019-06-09 13:24:05 +10:00
Micrah
c251b8e51f wrong id, updating 2019-05-26 01:17:12 +10:00
BarbzYHOOL
7bc0035bf0 First commit (separate each module from original repo of StygianTheBest) 2018-03-05 18:02:58 +01:00