diff options
-rw-r--r-- | engines/wage/combat.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/engines/wage/combat.cpp b/engines/wage/combat.cpp index 4a043311b8..d1f5d2639c 100644 --- a/engines/wage/combat.cpp +++ b/engines/wage/combat.cpp @@ -743,9 +743,14 @@ bool WageEngine::handleOfferCommand(const char *target) { } bool WageEngine::tryAttack(Obj *weapon, Common::String &input) { - warning("STUB: tryAttack"); - - return false; + Common::String w(weapon->_name); + w.toLowercase(); + Common::String i(input); + i.toLowercase(); + Common::String v(weapon->_operativeVerb); + v.toLowercase(); + + return i.contains(w) && i.contains(v); } bool WageEngine::handleAttack(Obj *weapon) { |