summaryrefslogtreecommitdiff
path: root/src/being
diff options
context:
space:
mode:
Diffstat (limited to 'src/being')
-rw-r--r--src/being/being.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 4c750f5c8..cfb182355 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -1026,10 +1026,15 @@ void Being::handleSkill(Being *restrict const victim,
if (this != localPlayer && skill)
{
const SkillType::SkillType type = skill->type;
- if (type == SkillType::Attack || type == SkillType::Ground)
+ if ((type & SkillType::Attack) != 0 ||
+ (type & SkillType::Ground) != 0)
+ {
setAction(BeingAction::ATTACK, 1);
+ }
else
+ {
setAction(BeingAction::STAND, 1);
+ }
}
reset();