*The Author of r1583 is AlexDereka.
--HG-- branch : trunk
This commit is contained in:
+10
-10
@@ -5526,19 +5526,19 @@ void Spell::EffectMomentMove(uint32 i)
|
||||
int j = 0;
|
||||
for(j; j<10 ;j++)
|
||||
{
|
||||
if(fabs(z - destz) > 6)
|
||||
{
|
||||
destx -= step * cos(orientation);
|
||||
desty -= step * sin(orientation);
|
||||
ground = unitTarget->GetMap()->GetHeight(destx,desty,MAX_HEIGHT,true);
|
||||
floor = unitTarget->GetMap()->GetHeight(destx,desty,z, true);
|
||||
destz = fabs(ground - z) <= fabs(floor - z) ? ground:floor;
|
||||
}else
|
||||
break;
|
||||
if(fabs(z - destz) > 6)
|
||||
{
|
||||
destx -= step * cos(orientation);
|
||||
desty -= step * sin(orientation);
|
||||
ground = unitTarget->GetMap()->GetHeight(destx,desty,MAX_HEIGHT,true);
|
||||
floor = unitTarget->GetMap()->GetHeight(destx,desty,z, true);
|
||||
destz = fabs(ground - z) <= fabs(floor - z) ? ground:floor;
|
||||
}else
|
||||
break;
|
||||
}
|
||||
if(j == 9)
|
||||
{
|
||||
return;
|
||||
return;
|
||||
}
|
||||
|
||||
if(unitTarget->GetTypeId() == TYPEID_PLAYER)
|
||||
|
||||
Reference in New Issue
Block a user