mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-01 10:03:47 +00:00
Feat: (core) Additional Helper (#11457)
* Feat: (core) Additional Helper
This commit is contained in:
@@ -19153,6 +19153,7 @@ void Unit::ExitVehicle(Position const* /*exitPosition*/)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
GetVehicleBase()->RemoveAurasByType(SPELL_AURA_CONTROL_VEHICLE, GetGUID());
|
GetVehicleBase()->RemoveAurasByType(SPELL_AURA_CONTROL_VEHICLE, GetGUID());
|
||||||
|
ToPlayer()->SetCanTeleport(true);
|
||||||
//! The following call would not even be executed successfully as the
|
//! The following call would not even be executed successfully as the
|
||||||
//! SPELL_AURA_CONTROL_VEHICLE unapply handler already calls _ExitVehicle without
|
//! SPELL_AURA_CONTROL_VEHICLE unapply handler already calls _ExitVehicle without
|
||||||
//! specifying an exitposition. The subsequent call below would return on if (!m_vehicle).
|
//! specifying an exitposition. The subsequent call below would return on if (!m_vehicle).
|
||||||
|
|||||||
@@ -6036,6 +6036,7 @@ SpellCastResult Spell::CheckCast(bool strict)
|
|||||||
if (m_pathFinder->GetPathType() & (PATHFIND_NOPATH | PATHFIND_INCOMPLETE) || target->GetExactDistSq(endPos.x, endPos.y, endPos.z) > maxdist * maxdist || m_pathFinder->getPathLength() > (40.0f + (m_caster->HasAura(58097) ? 5.0f : 0.0f)))
|
if (m_pathFinder->GetPathType() & (PATHFIND_NOPATH | PATHFIND_INCOMPLETE) || target->GetExactDistSq(endPos.x, endPos.y, endPos.z) > maxdist * maxdist || m_pathFinder->getPathLength() > (40.0f + (m_caster->HasAura(58097) ? 5.0f : 0.0f)))
|
||||||
return SPELL_FAILED_NOPATH;
|
return SPELL_FAILED_NOPATH;
|
||||||
}
|
}
|
||||||
|
m_caster->ToPlayer()->SetCanTeleport(true);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case SPELL_EFFECT_SKINNING:
|
case SPELL_EFFECT_SKINNING:
|
||||||
|
|||||||
Reference in New Issue
Block a user