void Equipment::UnEquip() { if(IsEquipped()) { std::shared_ptr<PartyMember> target = m_target.lock(); for(int i = 0; i < m_additionalEffects.size(); i++) { target->RemovePassiveEffect(m_additionalEffects[i].get()); } } m_target = std::weak_ptr<PartyMember>(); }
std::string Item::GetDebugInfo() const { std::stringstream sstr; sstr << Object::GetDebugInfo() << "\n" << std::boolalpha << "Owner: " << GetOwnerGUID().ToString() << " Count: " << GetCount() << " BagSlot: " << std::to_string(GetBagSlot()) << " Slot: " << std::to_string(GetSlot()) << " Equipped: " << IsEquipped(); return sstr.str(); }