| 366 | } |
| 367 | |
| 368 | List<DamageNotification> StatusController::applyDamageRequest(DamageRequest const& damageRequest) { |
| 369 | if (auto damageNotifications = m_primaryScript.invoke<List<DamageNotification>>("applyDamageRequest", damageRequest)) { |
| 370 | for (auto const& dn : *damageNotifications) |
| 371 | m_recentDamageTaken.add(dn); |
| 372 | return damageNotifications.take(); |
| 373 | } |
| 374 | return {}; |
| 375 | } |
| 376 | |
| 377 | void StatusController::hitOther(EntityId targetEntityId, DamageRequest damageRequest) { |
| 378 | m_recentHitsGiven.add({targetEntityId, std::move(damageRequest)}); |
no test coverage detected