Core/Creature: Implemented sparring with max health percent thresholds (#27198)

Co-authored-by: Ovah <dreadkiller@gmx.de>
This commit is contained in:
ModoX
2023-04-06 01:01:02 +02:00
committed by GitHub
parent 20a1e21cc5
commit 0750b7f845
11 changed files with 164 additions and 10 deletions

View File

@@ -1151,11 +1151,6 @@ class npc_thorim_pre_phase : public CreatureScript
thorim->AI()->DoAction(ACTION_INCREASE_PREADDS_COUNT);
}
bool ShouldSparWith(Unit const* target) const override
{
return !target->GetAffectingPlayer();
}
void DamageTaken(Unit* attacker, uint32& damage, DamageEffectType /*damageType*/, SpellInfo const* /*spellInfo = nullptr*/) override
{
// nullify spell damage