Feat: (core) Additional Helper (#11457)

* Feat: (core) Additional Helper
This commit is contained in:
acidmanifesto
2022-04-21 06:06:22 -04:00
committed by GitHub
parent 343732ee0b
commit d38b6ce0db
2 changed files with 2 additions and 0 deletions

View File

@@ -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)))
return SPELL_FAILED_NOPATH;
}
m_caster->ToPlayer()->SetCanTeleport(true);
break;
}
case SPELL_EFFECT_SKINNING: