*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;
|
int j = 0;
|
||||||
for(j; j<10 ;j++)
|
for(j; j<10 ;j++)
|
||||||
{
|
{
|
||||||
if(fabs(z - destz) > 6)
|
if(fabs(z - destz) > 6)
|
||||||
{
|
{
|
||||||
destx -= step * cos(orientation);
|
destx -= step * cos(orientation);
|
||||||
desty -= step * sin(orientation);
|
desty -= step * sin(orientation);
|
||||||
ground = unitTarget->GetMap()->GetHeight(destx,desty,MAX_HEIGHT,true);
|
ground = unitTarget->GetMap()->GetHeight(destx,desty,MAX_HEIGHT,true);
|
||||||
floor = unitTarget->GetMap()->GetHeight(destx,desty,z, true);
|
floor = unitTarget->GetMap()->GetHeight(destx,desty,z, true);
|
||||||
destz = fabs(ground - z) <= fabs(floor - z) ? ground:floor;
|
destz = fabs(ground - z) <= fabs(floor - z) ? ground:floor;
|
||||||
}else
|
}else
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if(j == 9)
|
if(j == 9)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(unitTarget->GetTypeId() == TYPEID_PLAYER)
|
if(unitTarget->GetTypeId() == TYPEID_PLAYER)
|
||||||
|
|||||||
Reference in New Issue
Block a user