1
This commit is contained in:
commit
b4015cf13f
@ -1104,7 +1104,7 @@ void Creature::ProcSkillPhase(MetaData::SkillPhase* phase)
|
||||
a8::Vec2 old_pos = GetPos();
|
||||
if (CurrentSkill()->GetMinorType() == SMT_NONE) {
|
||||
int buff_id = phase->param3.GetInt();
|
||||
//TryAddBuff(this, buff_id);
|
||||
TryAddBuff(this, buff_id);
|
||||
a8::XPrintf("old_pos:%f,%f", {GetPos().x, GetPos().y});
|
||||
_UpdateMove(phase->param1.GetInt());
|
||||
a8::Vec2 pre_dir = old_dir;
|
||||
@ -1122,7 +1122,7 @@ void Creature::ProcSkillPhase(MetaData::SkillPhase* phase)
|
||||
a8::Vec2 new_dir = pre_pos - GetPos();
|
||||
new_dir.Normalize();
|
||||
SetMoveDir(new_dir);
|
||||
//TryAddBuff(this, buff_id);
|
||||
TryAddBuff(this, buff_id);
|
||||
_UpdateMove(distance);
|
||||
}
|
||||
SetMoveDir(old_dir);
|
||||
@ -3224,4 +3224,3 @@ void Creature::_UpdateSpecMove()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -547,7 +547,7 @@ void FrameMaker::SerializeChgedCars(cs::SMUpdate* msg, Room* room, Human* hum, F
|
||||
p->set_obj_id(target.Get()->GetUniId());
|
||||
p->set_property_type(kPropCar);
|
||||
if (target.Get()->AsHuman()->GetCar()) {
|
||||
p->set_property_subtype(target.Get()->AsHuman()->GetCar()->meta->i->id());
|
||||
p->set_property_subtype(target.Get()->AsHuman()->GetCar()->GetUniId());
|
||||
p->set_value(target.Get()->AsHuman()->GetSeat());
|
||||
} else {
|
||||
p->set_property_subtype(0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user