mirror of
				https://github.com/DarkflameUniverse/DarkflameServer.git
				synced 2025-10-31 20:52:01 +00:00 
			
		
		
		
	Merge pull request #496 from EmosewaMC/fix-skill-proxies
Addressed proxy items removing skills
This commit is contained in:
		| @@ -1229,19 +1229,19 @@ void InventoryComponent::AddItemSkills(const LOT lot) | ||||
| 	 | ||||
| 	const auto index = m_Skills.find(slot); | ||||
|  | ||||
| 	if (index != m_Skills.end()) | ||||
| 	{ | ||||
| 		const auto old = index->second; | ||||
| 		 | ||||
| 		GameMessages::SendRemoveSkill(m_Parent, old); | ||||
| 	} | ||||
|  | ||||
| 	const auto skill = FindSkill(lot); | ||||
|  | ||||
| 	if (skill == 0) | ||||
| 	{ | ||||
| 		return; | ||||
| 	} | ||||
|  | ||||
| 	if (index != m_Skills.end()) | ||||
| 	{ | ||||
| 		const auto old = index->second; | ||||
| 		 | ||||
| 		GameMessages::SendRemoveSkill(m_Parent, old); | ||||
| 	} | ||||
| 	 | ||||
| 	GameMessages::SendAddSkill(m_Parent, skill, static_cast<int>(slot)); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 David Markowitz
					David Markowitz