Skip to content

Add MD_NOCAST_SKILL mob mode to disable mob_skill_db skill usage - #3447

Open
MrKeiKun wants to merge 1 commit into
HerculesWS:masterfrom
MrKeiKun:fix/mob-nocast-skill-mode
Open

Add MD_NOCAST_SKILL mob mode to disable mob_skill_db skill usage#3447
MrKeiKun wants to merge 1 commit into
HerculesWS:masterfrom
MrKeiKun:fix/mob-nocast-skill-mode

Conversation

@MrKeiKun

@MrKeiKun MrKeiKun commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Pull Request Prelude

Changes Proposed

This adds a new mode flag, MD_NOCAST_SKILL (0x00020000), that is checked at the top of mob_use_skill() and short-circuits all skill usage (idle and combat states alike) when set. It's exposed:

  • as a mob_db.conf Mode key (NoCastSkill: true/false), for permanently disabling skill use on specific monsters/spawns
  • as a script constant, so it can be toggled at runtime via setunitdata/getunitdata(UDT_MODE, ...), matching the workaround the reporter was already trying to use

Also corrected the doc note on MD_CANATTACK in doc/mob_db_mode_list.md, which claimed "skills are always allowed" — that's no longer unconditionally true.

Issues addressed: #1770

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant