This commit is contained in:
aozhiwei 2021-08-06 08:06:19 +00:00
parent 377a3b5cbc
commit d896c12b8e

View File

@ -772,7 +772,8 @@ void Creature::DoSkill(int skill_id,
const a8::Vec2& target_pos)
{
if (HasBuffEffect(kBET_Jump) ||
HasBuffEffect(kBET_Fly)) {
HasBuffEffect(kBET_Fly) ||
HasBuffEffect(kBET_Sprint)) {
return;
}
DoSkillPreProc(skill_id, target_id, target_pos);
@ -1536,6 +1537,12 @@ void Creature::Shot(a8::Vec2& target_dir, bool& shot_ok, float fly_distance)
return;
}
if (HasBuffEffect(kBET_Jump) ||
HasBuffEffect(kBET_Fly) ||
HasBuffEffect(kBET_Sprint)) {
return;
}
if (GetCurrWeapon()->weapon_idx != 0 &&
GetCurrWeapon()->ammo <= 0) {
AutoLoadingBullet();