fix(Scripts/Karazhan): Fix fear immunity for Strawman (#17307)

This commit is contained in:
Skjalf
2023-09-19 20:32:25 -03:00
committed by GitHub
parent 7dd9ca01c5
commit 3a51249bf5
2 changed files with 3 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
--
UPDATE `creature_template` SET `mechanic_immune_mask` = `mechanic_immune_mask`|16 WHERE `entry` = 17543;

View File

@@ -508,7 +508,7 @@ struct boss_strawman : public ScriptedAI
void SpellHit(Unit* /*caster*/, SpellInfo const* Spell) override
{
if ((Spell->SchoolMask == SPELL_SCHOOL_MASK_FIRE) && (!(rand() % 10)))
if ((Spell->SchoolMask == SPELL_SCHOOL_MASK_FIRE) && roll_chance_i(10))
{
/*
if (not direct damage(aoe, dot))