| 949 | } |
| 950 | |
| 951 | WeaponStatus BattleUnit::canAttackUnit(GameState &state, sp<BattleUnit> unit) |
| 952 | { |
| 953 | return canAttackUnit(state, unit, agent->getFirstItemInSlot(EquipmentSlotType::RightHand), |
| 954 | agent->getFirstItemInSlot(EquipmentSlotType::LeftHand)); |
| 955 | } |
| 956 | |
| 957 | WeaponStatus BattleUnit::canAttackUnit(GameState &state, sp<BattleUnit> unit, |
| 958 | sp<AEquipment> rightHand, sp<AEquipment> leftHand) |
no test coverage detected