[10561] Avoid ask AI for direct controlled creature at attack.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also fix warrning double->float in recent commited code.
This commit is contained in:
zergtmn 2010-09-30 17:51:51 +04:00 committed by VladimirMangos
parent 02b51fb976
commit ab3de84cca
3 changed files with 11 additions and 10 deletions

View file

@ -1776,7 +1776,7 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
}
case 64385: // Spinning (from Unusual Compass)
{
m_caster->SetFacingTo(frand(0, M_PI*2), true);
m_caster->SetFacingTo(frand(0, M_PI_F*2), true);
return;
}
case 67019: // Flask of the North