| 459 | } |
| 460 | |
| 461 | bool HitExecuteRetStatus(OsiArgumentDesc & args) |
| 462 | { |
| 463 | auto helper = HelperHandleToHelper(args[0].Int64); |
| 464 | auto & statusHandle = args[1].Int64; |
| 465 | |
| 466 | if (helper == nullptr) return false; |
| 467 | |
| 468 | if (helper->Type != DamageHelpers::HT_CustomHit) { |
| 469 | OsiError("Called on a DamageHelper that is not a custom hit!"); |
| 470 | return false; |
| 471 | } |
| 472 | |
| 473 | auto status = helper->Execute(); |
| 474 | gOsirisProxy->GetExtensionState().DamageHelpers.Destroy(helper->Handle); |
| 475 | if (status == nullptr) { |
| 476 | return false; |
| 477 | } else { |
| 478 | statusHandle = (int64_t)status->StatusHandle; |
| 479 | return true; |
| 480 | } |
| 481 | } |
| 482 | |
| 483 | void HitSetInt(OsiArgumentDesc const & args) |
| 484 | { |
nothing calls this directly
no test coverage detected