Merge branch 'aq' of github.com:gemt/server into aq

This commit is contained in:
Gemt
2017-05-05 18:20:16 +02:00
2 changed files with 6 additions and 3 deletions
+3
View File
@@ -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 | (2 | 16 | 4096 | 512) WHERE entry IN (15728, 15334, 15725, 15726, 15802);
@@ -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) {