mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
Updated to 3.1.2.9855 client build, fixed quests, some work on monster movement. Not tested.
This commit is contained in:
parent
21a38a42d8
commit
b980e9ac59
22 changed files with 114 additions and 92 deletions
|
|
@ -3671,7 +3671,7 @@ SpellCastResult Spell::CheckCast(bool strict)
|
|||
if( m_caster->GetTypeId()==TYPEID_PLAYER && ((Player*)m_caster)->isMoving() )
|
||||
{
|
||||
// skip stuck spell to allow use it in falling case and apply spell limitations at movement
|
||||
if( (!m_caster->HasUnitMovementFlag(MOVEMENTFLAG_FALLING) || m_spellInfo->Effect[0] != SPELL_EFFECT_STUCK) &&
|
||||
if( (!((Player*)m_caster)->m_movementInfo.HasMovementFlag(MOVEMENTFLAG_FALLING) || m_spellInfo->Effect[0] != SPELL_EFFECT_STUCK) &&
|
||||
(IsAutoRepeat() || (m_spellInfo->AuraInterruptFlags & AURA_INTERRUPT_FLAG_NOT_SEATED) != 0) )
|
||||
return SPELL_FAILED_MOVING;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue