diff options
author | Joseph Botosh <rumly111@gmail.com> | 2015-06-06 16:43:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-07-25 21:38:45 +0300 |
commit | f5d2e707df5171146af3fe1366ecb8fa17b56eea (patch) | |
tree | 98ecc19abc847640e1e887b52c6cd5899ff7bf1b /src | |
parent | f67a60ea6108e2c70186bf4742c223179ac5f4be (diff) | |
download | manaverse-f5d2e707df5171146af3fe1366ecb8fa17b56eea.tar.gz manaverse-f5d2e707df5171146af3fe1366ecb8fa17b56eea.tar.bz2 manaverse-f5d2e707df5171146af3fe1366ecb8fa17b56eea.tar.xz manaverse-f5d2e707df5171146af3fe1366ecb8fa17b56eea.zip |
remove duplicate checkAttackPermissions(target) for /atkhuman
Diffstat (limited to 'src')
-rw-r--r-- | src/actions/actions.cpp | 7 |
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; } |