This commit is contained in:
aozhiwei 2023-06-02 11:57:42 +08:00
parent 11f4271760
commit fc09c06777

View File

@ -1283,6 +1283,9 @@ void Creature::UpdatePoisoning()
void Creature::Shot(glm::vec3& target_dir, bool& shot_ok, float fly_distance, int trace_target_uniid)
{
shot_ok = false;
if (!GetCurrWeapon()) {
return;
}
if (!GetCurrWeapon()->meta) {
return;
}