diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-09-08 19:14:33 +0200 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-09-08 19:18:08 +0200 |
commit | 05fc955a3f8a03539088fa7569395434e29d90e8 (patch) | |
tree | 48a35f8f3bc68651bbe82cb15cc8488746334e64 /src/game-server/abilitymanager.cpp | |
parent | f1b7570131c328fcf549835a435ea6bfb4721721 (diff) | |
download | manaserv-05fc955a3f8a03539088fa7569395434e29d90e8.tar.gz manaserv-05fc955a3f8a03539088fa7569395434e29d90e8.tar.bz2 manaserv-05fc955a3f8a03539088fa7569395434e29d90e8.tar.xz manaserv-05fc955a3f8a03539088fa7569395434e29d90e8.zip |
Added support for direction based ability targets
I had to rearrange the protocol a bit in order to allow to keep the
related things together.
Diffstat (limited to 'src/game-server/abilitymanager.cpp')
-rw-r--r-- | src/game-server/abilitymanager.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game-server/abilitymanager.cpp b/src/game-server/abilitymanager.cpp index 3e923800..c1401284 100644 --- a/src/game-server/abilitymanager.cpp +++ b/src/game-server/abilitymanager.cpp @@ -31,6 +31,8 @@ static AbilityManager::TargetMode getTargetByString(const std::string &str) return AbilityManager::TARGET_BEING; else if (strLower == "point") return AbilityManager::TARGET_POINT; + else if (strLower == "direction") + return AbilityManager::TARGET_DIRECTION; LOG_WARN("Unknown targetmode " << str << " assuming being."); return AbilityManager::TARGET_BEING; |