diff options
author | megamage <none@none> | 2008-11-15 15:09:22 -0600 |
---|---|---|
committer | megamage <none@none> | 2008-11-15 15:09:22 -0600 |
commit | 7d3997f7d62565ad326b2913c179f3bae7a84fc7 (patch) | |
tree | e55b448096411f64f9e523a9165f5a3b6e26b5f0 /src/game/Unit.cpp | |
parent | 61d9723c5bfae4c528a4d0963ec1cc90f78ca71d (diff) |
[svn] *Update Kalecgos script.
*Correctly select aura triggered spell target.
*Fix some scripts, should be pGOHello = &
*Fix a bug that some channel spells cannot be interrupted.
*Fix a bug that not-selectable creature cannot be hit by target_entry spells.
*If eventAI cannot find heroic flag and normal flag, enable event as default rather than disable it.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r-- | src/game/Unit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 8d94a7fea5e..ade913d8c26 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -497,7 +497,7 @@ void Unit::RemoveAurasWithInterruptFlags(uint32 flag) // interrupt channeled spell if(Spell* spell = m_currentSpells[CURRENT_CHANNELED_SPELL]) - if(spell->getState() == SPELL_STATE_CASTING && (spell->m_spellInfo->AuraInterruptFlags & flag)) + if(spell->getState() == SPELL_STATE_CASTING && (spell->m_spellInfo->ChannelInterruptFlags & flag)) InterruptNonMeleeSpells(false); } @@ -511,7 +511,7 @@ void Unit::UpdateInterruptMask() } if(Spell* spell = m_currentSpells[CURRENT_CHANNELED_SPELL]) if(spell->getState() == SPELL_STATE_CASTING) - m_interruptMask |= spell->m_spellInfo->AuraInterruptFlags; + m_interruptMask |= spell->m_spellInfo->ChannelInterruptFlags; } bool Unit::HasAuraType(AuraType auraType) const |