Skip to content

Conversation

@Gultask
Copy link
Contributor

@Gultask Gultask commented Jan 30, 2026

Changes Proposed:

This PR proposes changes to:

  • Core (units, players, creatures, game systems).
  • Scripts (bosses, spell scripts, creature scripts).
  • Database (SAI, creatures, etc).

Events were re-queued on failure, so you have a lot of spam.

AI-assisted Pull Requests

Important

While the use of AI tools when preparing pull requests is not prohibited, contributors must clearly disclose when such tools have been used and specify the model involved.

Contributors are also expected to fully understand the changes they are submitting and must be able to explain and justify those changes when requested by maintainers.

  • AI tools (e.g. ChatGPT, Claude, or similar) were used entirely or partially in preparing this pull request. Please specify which tools were used, if any.

Issues Addressed:

SOURCE:

The changes have been validated through:

  • Live research (checked on live servers, e.g Classic WotLK, Retail, etc.)
  • Sniffs (remember to share them with the open source community!)
  • Video evidence, knowledge databases or other public sources (e.g forums, Wowhead, etc.)
  • The changes promoted by this pull request come partially or entirely from another project (cherry-pick). Cherry-picks must be committed using the proper --author tag in order to be accepted, thus crediting the original authors, unless otherwise unable to be found

Tests Performed:

This PR has been:

  • Tested in-game by the author.
  • Tested in-game by other community members/someone else other than the author/has been live on production servers.
  • This pull request requires further testing and may have edge cases to be tested.

No testing necessary

How to Test the Changes:

  • This pull request can be tested by following the reproduction steps provided in the linked issue
  • This pull request requires further testing. Provide steps to test your changes. If it requires any specific setup e.g multiple players please specify it as well.

Known Issues and TODO List:

  • [ ]
  • [ ]

How to Test AzerothCore PRs

When a PR is ready to be tested, it will be marked as [WAITING TO BE TESTED].

You can help by testing PRs and writing your feedback here on the PR's page on GitHub. Follow the instructions here:

http://www.azerothcore.org/wiki/How-to-test-a-PR

REMEMBER: when testing a PR that changes something generic (i.e. a part of code that handles more than one specific thing), the tester should not only check that the PR does its job (e.g. fixing spell XXX) but especially check that the PR does not cause any regression (i.e. introducing new bugs).

For example: if a PR fixes spell X by changing a part of code that handles spells X, Y, and Z, we should not only test X, but we should test Y and Z as well.

Copilot AI review requested due to automatic review settings January 30, 2026 23:31
@github-actions github-actions bot added CORE Related to the core file-cpp Used to trigger the matrix build labels Jan 30, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to fix an issue where NPCs overuse CC (crowd control) abilities by changing the timer recalculation behavior in the AREA_CASTING event. The change replaces a hardcoded 1200ms timer with the event's configured min/max repeat values to allow for more flexible and appropriate timing.

Changes:

  • Modified AREA_CASTING event handler to use event-configured repeat timers instead of hardcoded 1200ms values when no valid casting targets are found

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@UncomaFAI1351
Copy link

Without the PR

Test one: 2 Bandits hit a level 10 Paladin who is casting Holy Light on himself. I counted how many times the Paladin got kicked (this is not the interrupt kick, this is the kick that makes your character fall on his back) in 1 minute and repeated the test 10 times. In the lowest scenario, the Paladin gets kicked 8 times. In the highest scenario, gets kicked 16 times. On average the Paladin gets kicked 11,2 times in a minute.
Test two: 1 Shadowforge Ruffian attacks and kicks (interrupts) a level 40 Paladin who is casting Holy Light on himself. I counted how many times the paladin got interrupted and repeated this test 4 times. In the lowest scenario, the Paladin gets interrupted 6 times and in the highest 7 times. On average in a minute the paladin gets interrupted 6.25 times.

With the PR
Test one: Same procedure as before I tested how many times the Paladin gets kicked by 2 Bandits in a minute. In the lowest case it gets hit 7 times. In the highest case it gets kicked 14 times. On average it gets kicked 10.2 times in a minute.
Test two: 1 Shadowforge Ruffian attacks and kicks (interrupts) a level 40 Paladin who is casting Holy Light on himself. I counted how many times the paladin got interrupted and repeated this test 4 times. In the lowest scenario the Paladin got interrupted 5 times and in the highest 6 times. On average in a minute the paladin gets interrupted 5,25 times.

Also NPC 12380 with the PR still interrupts an abnormal amount of times in a minute reaching 7 and even 8 interrupts in a minute.

@github-actions github-actions bot added the DB related to the SQL database label Jan 31, 2026
@Gultask
Copy link
Contributor Author

Gultask commented Jan 31, 2026

@UncomaFAI1351 Thank you for putting in the effort of testing it! At this point, it's a creature-per-creature basis, needing either a higher repeat timer or a lower chance. It's easy enough to do either. I've pushed another change for the creatures you mentioned.

@UncomaFAI1351
Copy link

I just tested it. Now the interrupts/CC went from "unfair" to acceptable. 2 or 3 CCs at most per minute which falls under the impression I had of "Blizzlike" CC. NPC 12380 which was the biggest offender went from 7-8 interrupts per minute to 2-3 which is acceptable. Shadowforge Ruffian interrupts 2-3 per minute too.

@Gultask
Copy link
Contributor Author

Gultask commented Jan 31, 2026

@UncomaFAI1351 You know what? I think I'll just do a change accross the board to make things more bearable, because it'd take forever to investigate one by one, and it'd just leave a lot of frustrating creatures to deal with while that happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CORE Related to the core DB related to the SQL database file-cpp Used to trigger the matrix build Ready to be Reviewed To Be Merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[NPC] Mobs overuse their interrupt skills Mobs seem to have no cooldown on interrupts

2 participants