From c14af75fab3ddb45886a358e5056c2b0baee91e1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 4 Jul 2016 20:04:05 +0300 Subject: Use skill type as bit mask with skill types. It rare but still possible. --- src/being/being.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/being') 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(); -- cgit v1.2.3-70-g09d2