Description: Initial support for monster sparring was implemented here https://github.com/TrinityCore/TrinityCore/pull/17673
Only melee attack are working now, spells still deal damage, Also some mechanism like deal damage only until health% is not implemented.
Old issue: https://github.com/TrinityCore/TrinityCore/issues/13258
Branch(es): 3.3.5 / master (Tell us which branch(es) this issue affects.)
TC rev. hash/commit: rev. 3e51583e6cde
After further investigation all known npcs that mustn't take damage under 85% hp from other creature have the flag CREATURE_DIFFICULTYFLAGS_4_UNK4 = 0x00000080 -- 128
name from binary: No NPC damage below 85%" flag for unit(s)
Then we just need a check?
@Killyana How do you even get those names for the difficulty flags?
@kelno : Looks like they are available in the source code in the master branch:
Not sure if they are available in 3.3.5 source, maybe one of the TC devs can tell you more.
Thanks, but I've seen that, the " No NPC damage below 85%" flag for unit(s)" part is what I'm wondering about, since Killyana mention "name from binary"
Not sure about that, maybe it is something from the DBC files?
Most helpful comment
After further investigation all known npcs that mustn't take damage under 85% hp from other creature have the flag CREATURE_DIFFICULTYFLAGS_4_UNK4 = 0x00000080 -- 128
name from binary: No NPC damage below 85%" flag for unit(s)