Hello, i was working on my 1.12.1 server and there was some problem with Blink...(Undermap and other)
What features does the patch add?
You can't go undermap now.
For which repository revision was the patch created?
It's for WoW 1.12.1. but it's should work on 3.3.5
Who has been writing this patch?
przemratajczak
Kaios(me)
First off Go here : http://github.com/przemratajczak/mangos/commit/41205afb84a3795df38f2e3dfa162db0b34208c0
Search "void Spell::EffectLeapForward(SpellEffectIndex eff_idx)" in SpellEffect and replace it by mine.
void Spell::EffectLeapForward(SpellEffectIndex eff_idx)
{
if(unitTarget->IsTaxiFlying())
return;
if( m_spellInfo->rangeIndex == 1) //self range
{
float dis = GetSpellRadius(sSpellRadiusStore.LookupEntry(m_spellInfo->EffectRadiusIndex[eff_idx]));
// before caster
float fx, fy, fz;
unitTarget->GetClosePoint(fx, fy, fz, unitTarget->GetObjectBoundingRadius(), dis);
float ox, oy, oz;
unitTarget->GetPosition(ox, oy, oz);
float fx2, fy2, fz2; // getObjectHitPos overwrite last args in any result case
if(VMAP::VMapFactory::createOrGetVMapManager()->getObjectHitPos(unitTarget->GetMapId(), ox,oy,oz+0.5f, fx,fy,oz+0.5f,fx2,fy2,fz2, -0.5f))
{
fx = fx2;
fy = fy2;
fz = fz2;
}
if(!unitTarget->IsInWater())
fz = m_caster->GetBaseMap()->GetHeight(fx,fy,fz,true);
else
fz = m_caster->GetMap()->GetWaterLevel(fx,fy);
if (fabs(fz-oz) > 4.0f)
{
fx = ox;
fy = oy;
fz = oz;
}
unitTarget->NearTeleportTo(fx, fy, fz, unitTarget->GetOrientation(),unitTarget==m_caster);
}
}