Skip to content

Commit

Permalink
Removed workaround for Chromaggus in BWL
Browse files Browse the repository at this point in the history
Now that PossessAI was reworked by @cyberium the workaround for Chromatic Mutation is no longer required
  • Loading branch information
cala committed Nov 1, 2017
1 parent 926c809 commit bdbb19b
Showing 1 changed file with 5 additions and 13 deletions.
Expand Up @@ -17,7 +17,7 @@
/* ScriptData
SDName: Boss_Chromaggus
SD%Complete: 95
SDComment: Chromatic Mutation disabled due to lack of core support
SDComment: Breaths and Afflictions spell mechanics may need some polish
SDCategory: Blackwing Lair
EndScriptData */

Expand Down Expand Up @@ -46,8 +46,8 @@ enum

SPELL_CHROMATIC_MUT_1 = 23174, // Spell cast on player if they get all 5 debuffs
SPELL_ELEMENTAL_SHIELD_BWL = 22276,
SPELL_FRENZY = 28371, // The frenzy spell may be wrong
SPELL_ENRAGE = 28747
SPELL_FRENZY = 23128,
SPELL_ENRAGE = 23537
};

static const uint32 aPossibleBreaths[MAX_BREATHS] = {SPELL_INCINERATE, SPELL_TIME_LAPSE, SPELL_CORROSIVE_ACID, SPELL_IGNITE_FLESH, SPELL_FROST_BURN};
Expand Down Expand Up @@ -179,16 +179,8 @@ struct boss_chromaggusAI : public ScriptedAI
&& pUnit->HasAura(SPELL_BROODAF_BRONZE, EFFECT_INDEX_0)
&& pUnit->HasAura(SPELL_BROODAF_GREEN, EFFECT_INDEX_0))
{
// target->RemoveAllAuras();
// DoCastSpellIfCan(target,SPELL_CHROMATIC_MUT_1);

// Chromatic mutation is causing issues
// Assuming it is caused by a lack of core support for Charm
// So instead we instant kill our target

// WORKAROUND
if (pUnit->GetTypeId() == TYPEID_PLAYER)
m_creature->CastSpell(pUnit, 5, TRIGGERED_NONE);
pUnit->RemoveAllAuras();
DoCastSpellIfCan(pUnit, SPELL_CHROMATIC_MUT_1, CAST_TRIGGERED);
}
}
}
Expand Down

0 comments on commit bdbb19b

Please sign in to comment.