1
This commit is contained in:
parent
99d31d73aa
commit
a08b311fe4
@ -922,6 +922,9 @@ bool Creature::InternalCanUseSkill(Skill* skill)
|
|||||||
if (playing_skill) {
|
if (playing_skill) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (HasBuffEffect(kBET_InWater)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (IsHuman() && AsHuman()->downed) {
|
if (IsHuman() && AsHuman()->downed) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -1422,7 +1425,8 @@ void Creature::Shot(glm::vec3& target_dir, bool& shot_ok, float fly_distance, in
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (HasBuffEffect(kBET_Jump) ||
|
if (HasBuffEffect(kBET_Jump) ||
|
||||||
HasBuffEffect(kBET_Fly)) {
|
HasBuffEffect(kBET_Fly) ||
|
||||||
|
HasBuffEffect(kBET_InWater)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user