summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Botosh <rumly111@gmail.com>2015-06-06 16:43:32 +0300
committerAndrei Karas <akaras@inbox.ru>2015-07-25 21:38:45 +0300
commitf5d2e707df5171146af3fe1366ecb8fa17b56eea (patch)
tree98ecc19abc847640e1e887b52c6cd5899ff7bf1b
parentf67a60ea6108e2c70186bf4742c223179ac5f4be (diff)
downloadplus-f5d2e707df5171146af3fe1366ecb8fa17b56eea.tar.gz
plus-f5d2e707df5171146af3fe1366ecb8fa17b56eea.tar.bz2
plus-f5d2e707df5171146af3fe1366ecb8fa17b56eea.tar.xz
plus-f5d2e707df5171146af3fe1366ecb8fa17b56eea.zip
remove duplicate checkAttackPermissions(target) for /atkhuman
-rw-r--r--src/actions/actions.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp
index a4520543c..aaa71848f 100644
--- a/src/actions/actions.cpp
+++ b/src/actions/actions.cpp
@@ -832,11 +832,8 @@ impHandler0(attackHuman)
localPlayer, 10, ActorType::Player, AllowSort_true);
if (target)
{
- if (localPlayer->checAttackPermissions(target))
- {
- localPlayer->setTarget(target);
- localPlayer->attack2(target, true);
- }
+ localPlayer->setTarget(target);
+ localPlayer->attack2(target, true);
}
return true;
}