Jump to content

[help] doomlordkazzak C++ function


Guest jakela

Recommended Posts

i need help fixxing this script, doomlord kazzak casts twisted relfection on the tank witch makes the fight nearly impossible and i was just wondering if anyone knew the function to cast a random debuff in players in range but not target with highest aggro?

if (Twisted_Reflection_Timer < diff)

{

if (Unit* pTarget = m_creature->SelectAttackingTarget(ATTACKING_TARGET_RANDOM, 0))

DoCastSpellIfCan(pTarget, SPELL_TWISTEDREFLECTION);

Twisted_Reflection_Timer = 15000;

}else Twisted_Reflection_Timer -= diff;

if anybody could help that would be awesome

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use