From dfab3607c969e696be5e147f114065d9f27059a8 Mon Sep 17 00:00:00 2001 From: Staden Date: Sun, 30 Apr 2017 20:08:00 +0100 Subject: [PATCH 1/3] C'Thun: Update P1 claw timer based on new data --- .../kalimdor/silithus/temple_of_ahnqiraj/boss_cthun.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scripts/kalimdor/silithus/temple_of_ahnqiraj/boss_cthun.cpp b/src/scripts/kalimdor/silithus/temple_of_ahnqiraj/boss_cthun.cpp index 5d227ec17..4a85e9f5e 100644 --- a/src/scripts/kalimdor/silithus/temple_of_ahnqiraj/boss_cthun.cpp +++ b/src/scripts/kalimdor/silithus/temple_of_ahnqiraj/boss_cthun.cpp @@ -280,7 +280,7 @@ static constexpr int32 MAX_INITIAL_PULLER_HITS = 3; // How many tim // puller with green beam before random target. static constexpr int32 P1_GREEN_BEAM_COOLDOWN = 3000; // Green beam has a 2 sec cast time. If this number is > 2000, // the cooldown will be P1_GREEN_BEAM_COOLDOWN - 2000 -static const uint32 clawTentacleSpanCooldownFunc() { return urand(6000, 12000); } +static const uint32 P1_CLAW_TENTACLE_RESPAWN_TIMER = 5000; // checked against old footage & current fight // ======================================================= // ================= TRANSITION CONSTANTS ================ @@ -1328,7 +1328,7 @@ struct cthunAI : public ScriptedAI return; cthunEmergeTimer = CTHUN_EMERGE_ANIM_DURATION; - clawTentacleTimer_p1 = clawTentacleSpanCooldownFunc(); + clawTentacleTimer_p1 = P1_CLAW_TENTACLE_RESPAWN_TIMER; eyeTentacleTimer_p1 = P1_EYE_TENTACLE_RESPAWN_TIMER; ResetartUnvulnerablePhase(false); @@ -1608,7 +1608,7 @@ struct cthunAI : public ScriptedAI void UpdateTentaclesP1(uint32 diff) { if (SpawnTentacleIfReady(diff, clawTentacleTimer_p1, 0, MOB_CLAW_TENTACLE)) { - clawTentacleTimer_p1 = clawTentacleSpanCooldownFunc(); + clawTentacleTimer_p1 = P1_CLAW_TENTACLE_RESPAWN_TIMER; } if (eyeTentacleTimer_p1 < diff) { From cea9844e17fc95d45cbd23016e4afaac1de71756 Mon Sep 17 00:00:00 2001 From: Staden Date: Sun, 30 Apr 2017 20:19:20 +0100 Subject: [PATCH 2/3] C'Thun: Fix immunities for various tenctacle spawns --- sql/AQ/CThun.sql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sql/AQ/CThun.sql b/sql/AQ/CThun.sql index 128aa312d..0373b1fe9 100644 --- a/sql/AQ/CThun.sql +++ b/sql/AQ/CThun.sql @@ -84,3 +84,6 @@ UPDATE creature_template SET flags_extra = flags_extra & ~512 WHERE entry = 1572 -- Taunt-immunity for both c'thuns body and the eye. Fixes eye being able to turn during dark glare UPDATE creature_template SET flags_extra = flags_extra | 256 where entry in (15589, 15727); + +-- Fix mechanic immunities for adds +UPDATE creature_template SET MechanicImmuneMask = MechanicImmuneMask | (16 | 4096 | 512) WHERE entry IN (15728, 15334, 15725, 15726, 15802); \ No newline at end of file From 3404ac31f50f9b09e1b83665304b08466b35d84c Mon Sep 17 00:00:00 2001 From: Staden Date: Mon, 1 May 2017 18:32:41 +0100 Subject: [PATCH 3/3] C'Thun: Make tentacles immune to blind too --- sql/AQ/CThun.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/AQ/CThun.sql b/sql/AQ/CThun.sql index 0373b1fe9..65622b423 100644 --- a/sql/AQ/CThun.sql +++ b/sql/AQ/CThun.sql @@ -86,4 +86,4 @@ UPDATE creature_template SET flags_extra = flags_extra & ~512 WHERE entry = 1572 UPDATE creature_template SET flags_extra = flags_extra | 256 where entry in (15589, 15727); -- Fix mechanic immunities for adds -UPDATE creature_template SET MechanicImmuneMask = MechanicImmuneMask | (16 | 4096 | 512) WHERE entry IN (15728, 15334, 15725, 15726, 15802); \ No newline at end of file +UPDATE creature_template SET MechanicImmuneMask = MechanicImmuneMask | (2 | 16 | 4096 | 512) WHERE entry IN (15728, 15334, 15725, 15726, 15802); \ No newline at end of file