| 740 | } |
| 741 | |
| 742 | void StatusController::removeUniqueEffect(UniqueStatusEffect const& effect) { |
| 743 | auto& uniqueEffect = m_uniqueEffects[effect]; |
| 744 | |
| 745 | uniqueEffect.script.invoke("onExpire"); |
| 746 | |
| 747 | uninitUniqueEffectScript(uniqueEffect); |
| 748 | |
| 749 | m_uniqueEffectMetadata.removeNetElement(uniqueEffect.metadataId); |
| 750 | |
| 751 | if (uniqueEffect.animatorId != EffectAnimatorGroup::NullElementId) |
| 752 | m_effectAnimators.removeNetElement(uniqueEffect.animatorId); |
| 753 | |
| 754 | m_uniqueEffects.remove(effect); |
| 755 | } |
| 756 | |
| 757 | void StatusController::initPrimaryScript() { |
| 758 | m_primaryScript.addCallbacks("status", LuaBindings::makeStatusControllerCallbacks(this)); |
nothing calls this directly
no test coverage detected