| 612 | esv::Status * GetStatusHelper(OsiArgumentDesc const & args); |
| 613 | |
| 614 | esv::StatusHit * HitStatusGet(OsiArgumentDesc const & args) |
| 615 | { |
| 616 | auto statusHandle = args[1].Int64; |
| 617 | |
| 618 | auto status = GetStatusHelper(args); |
| 619 | if (status == nullptr) { |
| 620 | OsiError("No status found with this handle: " << statusHandle); |
| 621 | return nullptr; |
| 622 | } |
| 623 | |
| 624 | if (status->GetStatusId() != StatusType::Hit) { |
| 625 | OsiError("Status with handle " << statusHandle << " is not a HIT!"); |
| 626 | return nullptr; |
| 627 | } |
| 628 | |
| 629 | return static_cast<esv::StatusHit *>(status); |
| 630 | } |
| 631 | |
| 632 | void HitStatusClearAllDamage(OsiArgumentDesc const & args) |
| 633 | { |
no test coverage detected