mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-24 14:16:31 +00:00
fix(Scripts/BlackwingLair): Chromaggus should cast the same affliction spell among players. (#10644)
Brood Affliction: Bronze should stun players in random intervals. - CLoses #10584 Co-authored-by: temperrr <temperrr@users.noreply.github.com>
This commit is contained in:
@@ -5943,7 +5943,11 @@ void AuraEffect::HandlePeriodicTriggerSpellAuraTick(Unit* target, Unit* caster)
|
||||
return;
|
||||
// Brood Affliction: Bronze
|
||||
case 23170:
|
||||
triggerSpellId = 23171;
|
||||
// Only 10% chance of triggering spell
|
||||
if (roll_chance_f(10.f))
|
||||
{
|
||||
triggerSpellId = 23171;
|
||||
}
|
||||
break;
|
||||
// Restoration
|
||||
case 24379:
|
||||
|
||||
@@ -247,12 +247,13 @@ public:
|
||||
break;
|
||||
case EVENT_AFFLICTION:
|
||||
{
|
||||
uint32 afflictionSpellID = RAND(SPELL_BROODAF_BLUE, SPELL_BROODAF_BLACK, SPELL_BROODAF_RED, SPELL_BROODAF_BRONZE, SPELL_BROODAF_GREEN);
|
||||
Map::PlayerList const& players = me->GetMap()->GetPlayers();
|
||||
for (Map::PlayerList::const_iterator itr = players.begin(); itr != players.end(); ++itr)
|
||||
{
|
||||
if (Player* player = itr->GetSource()->ToPlayer())
|
||||
{
|
||||
DoCast(player, RAND(SPELL_BROODAF_BLUE, SPELL_BROODAF_BLACK, SPELL_BROODAF_RED, SPELL_BROODAF_BRONZE, SPELL_BROODAF_GREEN), true);
|
||||
DoCast(player, afflictionSpellID, true);
|
||||
|
||||
if (player->HasAura(SPELL_BROODAF_BLUE) &&
|
||||
player->HasAura(SPELL_BROODAF_BLACK) &&
|
||||
|
||||
Reference in New Issue
Block a user