Fix disappearing casting bar when other spell triggers.

--HG--
branch : trunk
This commit is contained in:
krz
2009-06-17 00:50:11 +02:00
parent 6183046f8c
commit 0d8a66de8c
2 changed files with 6 additions and 0 deletions

View File

@@ -2887,6 +2887,11 @@ void Spell::SendSpellGo()
Unit *target = m_targets.getUnitTarget() ? m_targets.getUnitTarget() : m_caster;
uint32 castFlags = CAST_FLAG_UNKNOWN3;
// triggered spells with spell visual != 0
if(m_IsTriggeredSpell || m_triggeredByAuraSpell)
castFlags |= CAST_FLAG_UNKNOWN0;
if(IsRangedSpell())
castFlags |= CAST_FLAG_AMMO; // arrows/bullets visual

View File

@@ -60,6 +60,7 @@ enum SpellCastTargetFlags
enum SpellCastFlags
{
CAST_FLAG_UNKNOWN0 = 0x00000001, // stucks spell highlight
CAST_FLAG_UNKNOWN1 = 0x00000002,
CAST_FLAG_UNKNOWN2 = 0x00000010,
CAST_FLAG_AMMO = 0x00000020,