| 351 | } |
| 352 | |
| 353 | bool Monster::shouldDie() { |
| 354 | if (auto res = m_scriptComponent.invoke<bool>("shouldDie")) |
| 355 | return *res; |
| 356 | else if (!m_statusController->resourcePositive("health") || m_scriptComponent.error()) |
| 357 | return true; |
| 358 | else |
| 359 | return false; |
| 360 | } |
| 361 | |
| 362 | void Monster::knockout() { |
| 363 | m_knockedOut = true; |
nothing calls this directly
no test coverage detected