aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkrz <none@none>2009-06-17 00:50:11 +0200
committerkrz <none@none>2009-06-17 00:50:11 +0200
commit0d8a66de8cd75538fc445167623d7b4d9d4963b5 (patch)
tree17ebbf2aeff0280bbf24e1148314febc4eae8b16
parent6183046f8cdcfbb96ff67297fe094e87c4b737f2 (diff)
Fix disappearing casting bar when other spell triggers.
--HG-- branch : trunk
-rw-r--r--src/game/Spell.cpp5
-rw-r--r--src/game/Spell.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 3d05c57bdf3..4a0e51e9372 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -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
diff --git a/src/game/Spell.h b/src/game/Spell.h
index 8da9facb264..21351436e2b 100644
--- a/src/game/Spell.h
+++ b/src/game/Spell.h
@@ -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,