This commit is contained in:
aozhiwei 2023-06-15 20:04:10 +08:00
parent 9732a54a97
commit feaddff103

View File

@ -15,6 +15,7 @@
#include "netdata.h"
#include "hero.h"
#include "obstacle.h"
#include "car.h"
#include "mt/Buff.h"
#include "mt/Skill.h"
@ -344,6 +345,15 @@ void CallFuncBuff::ProcFlashMove()
owner->SetPos(new_pos);
Global::Instance()->verify_set_pos = 0;
owner->room->grid_service->MoveCreature(owner);
if (owner->IsCar()) {
Car* car = owner->AsCar();
if (car->GetDriver()) {
Global::Instance()->verify_set_pos = 1;
car->GetDriver()->SetPos(new_pos);
car->SyncPos();
Global::Instance()->verify_set_pos = 0;
}
}
return;
}
}