* Get unit's active hand. * @return active hand. */
| 2335 | * @return active hand. |
| 2336 | */ |
| 2337 | std::string BattleUnit::getActiveHand() const |
| 2338 | { |
| 2339 | if (getItem(_activeHand)) return _activeHand; |
| 2340 | if (getItem("STR_LEFT_HAND")) return "STR_LEFT_HAND"; |
| 2341 | return "STR_RIGHT_HAND"; |
| 2342 | } |
| 2343 | |
| 2344 | /** |
| 2345 | * Converts unit to another faction (original faction is still stored). |