mirror of
https://github.com/ZhengPeiRu21/mod-individual-progression
synced 2025-11-29 23:44:51 +08:00
Update boss_anubrekhan_40.cpp
- Anub'Rekhan's Guards now are present at the start of the encounter - Modified swarm damage to vanilla values
This commit is contained in:
@@ -37,6 +37,7 @@ enum Spells
|
||||
{
|
||||
SPELL_IMPALE = 28783,
|
||||
SPELL_LOCUST_SWARM = 28785,
|
||||
SPELL_LOCUST_SWARM_TRIGGER = 28786, // periodic effect
|
||||
SPELL_SUMMON_CORPSE_SCRABS_5 = 90001, // Changed from 29105 to Level 60 Mob ID for summon
|
||||
SPELL_SUMMON_CORPSE_SCRABS_10 = 90002, // Changed from 29105 to Level 60 Mob ID for summon
|
||||
SPELL_BERSERK = 26662
|
||||
@@ -88,13 +89,11 @@ public:
|
||||
bool sayGreet;
|
||||
|
||||
void SummonCryptGuards()
|
||||
{
|
||||
if (Is25ManRaid())
|
||||
{
|
||||
me->SummonCreature(NPC_CRYPT_GUARD, 3299.732f, -3502.489f, 287.077f, 2.378f, TEMPSUMMON_CORPSE_TIMED_DESPAWN, 60000);
|
||||
me->SummonCreature(NPC_CRYPT_GUARD, 3299.086f, -3450.929f, 287.077f, 3.999f, TEMPSUMMON_CORPSE_TIMED_DESPAWN, 60000);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void Reset() override
|
||||
{
|
||||
@@ -233,7 +232,14 @@ public:
|
||||
break;
|
||||
case EVENT_LOCUST_SWARM:
|
||||
Talk(EMOTE_LOCUST);
|
||||
|
||||
// Set damage for periodic trigger effect to a random value between 875 and 1125
|
||||
int32 modifiedLocustSwarmDamage = urand(875, 1125);
|
||||
me->CastSpell(me, SPELL_LOCUST_SWARM, false);
|
||||
|
||||
// Update the periodic trigger effect with custom damage
|
||||
me->CastCustomSpell(me, SPELL_LOCUST_SWARM_TRIGGER, &modifiedLocustSwarmDamage, nullptr, nullptr, true, nullptr, nullptr, me->GetGUID());
|
||||
|
||||
events.ScheduleEvent(EVENT_SPAWN_GUARD, 3000);
|
||||
events.RepeatEvent(90000);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user