1
This commit is contained in:
parent
d96bc08bd7
commit
a1d4fcd0c0
@ -1379,19 +1379,7 @@ void Creature::ProcBuffEffect(Creature* caster, Buff* buff)
|
|||||||
case kBET_FlashMove:
|
case kBET_FlashMove:
|
||||||
{
|
{
|
||||||
if (buff->meta->_int_param1 == 0) {
|
if (buff->meta->_int_param1 == 0) {
|
||||||
Position old_pos = GetPos();
|
SpecDirMove(skill_dir_, std::max(skill_distance_, 300.0f));
|
||||||
// 999
|
|
||||||
#if 1
|
|
||||||
Position new_pos = GetPos();
|
|
||||||
#else
|
|
||||||
a8::Vec2 new_pos = GetPos() + skill_dir_ * std::max(skill_distance_, 300.0f);
|
|
||||||
#endif
|
|
||||||
SetPos(new_pos);
|
|
||||||
if (CollisonDetection()) {
|
|
||||||
SetPos(old_pos);
|
|
||||||
} else {
|
|
||||||
room->grid_service->MoveCreature(this);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user