mangosR2/scriptdev2 — comment on commit 11d8894117728b68595a17217d3671811deb7ade
File:  line 0
By klimbo:

fallenangelX, you are right
npc_valiants and npc_champions, they really can not cast spells

and when you have free time, please add it:

void UpdateAI(const uint32 uiDiff)
{
if (!m_creature->SelectHostileTarget() || !m_creature->getVictim())
return;

if (m_uiVCHARGE_Timer <= uiDiff)
{
DoCastSpellIfCan(m_creature->getVictim(),SPELL_VCHARGE);
m_uiVCHARGE_Timer = 7000;
}
else
m_uiVCHARGE_Timer -= uiDiff;

if (m_uiVSHIELDBREAKER_Timer <= uiDiff)
{
DoCastSpellIfCan(m_creature->getVictim(),SPELL_VSHIELDBREAKER);
m_uiVSHIELDBREAKER_Timer = 10000;
}
else
m_uiVSHIELDBREAKER_Timer -= uiDiff;

DoMeleeAttackIfReady();
}