чтож я рад что авторы нашлись(авторов к сожалению не знал)
ps
это так и должно быть?
Код:
if (m_creature->IsWithinDistInMap(m_creature->getVictim(),30.0f))
{
movement = false;
if (m_uiFrostboltTimer <= diff)
{
DoCastSpellIfCan(m_creature->getVictim(),SPELL_FROSTBOLT);
m_uiFrostboltTimer = urand(4000,8000);
} else m_uiFrostboltTimer -= diff;
if (m_uiFireblastTimer <= diff)
{
DoCastSpellIfCan(m_creature->getVictim(),SPELL_FIREBLAST);
m_uiFireblastTimer = urand(4000,8000);
} else m_uiFireblastTimer -= diff;
if (m_uiFrostringTimer <= diff && m_creature->IsWithinDistInMap(m_creature->getVictim(),5.0f))
{
DoCastSpellIfCan(m_creature->getVictim(),SPELL_ICERING);
m_uiFrostringTimer = urand(4000,8000);
} else m_uiFrostboltTimer -= diff;
if (!blocked && m_creature->GetHealthPercent() < 10.0f)
{
DoCastSpellIfCan(m_creature,SPELL_ICEBLOCK);
blocked = true;
}
}