diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-04-10 23:42:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-04-11 00:05:30 +0300 |
commit | 9be7d0ac1127477a5ff5ffb3fb3dd45487eec213 (patch) | |
tree | 47433ccb0c1f7e4c71dea85647a642079948ad67 /src/actionmanager.cpp | |
parent | a3475e987b0e642b2b9aa9c6cbf74762c6c77d23 (diff) | |
download | manaverse-9be7d0ac1127477a5ff5ffb3fb3dd45487eec213.tar.gz manaverse-9be7d0ac1127477a5ff5ffb3fb3dd45487eec213.tar.bz2 manaverse-9be7d0ac1127477a5ff5ffb3fb3dd45487eec213.tar.xz manaverse-9be7d0ac1127477a5ff5ffb3fb3dd45487eec213.zip |
Move untarget and stop attack actions to actionmanager from hardcoded place.
Diffstat (limited to 'src/actionmanager.cpp')
-rw-r--r-- | src/actionmanager.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/actionmanager.cpp b/src/actionmanager.cpp index d3e34daa8..bbfaf5430 100644 --- a/src/actionmanager.cpp +++ b/src/actionmanager.cpp @@ -929,4 +929,24 @@ impHandler0(talk) return false; } +impHandler0(stopAttack) +{ + if (player_node) + { + player_node->stopAttack(); + return true; + } + return false; +} + +impHandler0(untarget) +{ + if (player_node) + { + player_node->untarget(); + return true; + } + return false; +} + } |