diff options
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/actions.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp index 176495a18..e9bf8b110 100644 --- a/src/actions/actions.cpp +++ b/src/actions/actions.cpp @@ -896,8 +896,11 @@ impHandler(targetAttack) { target = actorManager->findBeing(fromInt(atoi( args.substr(1).c_str()), BeingId)); - if ((target != nullptr) && target->getType() != ActorType::Monster) + if (target != nullptr && + target->getType() != ActorType::Monster) + { target = nullptr; + } } } |