mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 07:37:03 +00:00
[6995] Fixed spell casting with active auto-repeat ranged weapon.
This commit is contained in:
parent
948d76800d
commit
896b10e39a
2 changed files with 2 additions and 2 deletions
|
|
@ -2050,7 +2050,7 @@ void Spell::prepare(SpellCastTargets * targets, Aura* triggeredByAura)
|
||||||
m_caster->m_Events.AddEvent(Event, m_caster->m_Events.CalculateTime(1));
|
m_caster->m_Events.AddEvent(Event, m_caster->m_Events.CalculateTime(1));
|
||||||
|
|
||||||
//Prevent casting at cast another spell (ServerSide check)
|
//Prevent casting at cast another spell (ServerSide check)
|
||||||
if(m_caster->IsNonMeleeSpellCasted(false, true) && m_cast_count)
|
if(m_caster->IsNonMeleeSpellCasted(false, true, true) && m_cast_count)
|
||||||
{
|
{
|
||||||
SendCastResult(SPELL_FAILED_SPELL_IN_PROGRESS);
|
SendCastResult(SPELL_FAILED_SPELL_IN_PROGRESS);
|
||||||
finish(false);
|
finish(false);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "6994"
|
#define REVISION_NR "6995"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue