mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Fixed exchanging artifacts between heroes. Fixed def visibility issues. Refactored alphaTransform.
This commit is contained in:
@@ -2121,7 +2121,7 @@ bool CGameHandler::swapArtifacts( si32 hid1, si32 hid2, ui16 slot1, ui16 slot2 )
|
||||
sha.hid = hid2;
|
||||
sha.artifacts = h2->artifacts;
|
||||
sha.artifWorn = h2->artifWorn;
|
||||
sha.setArtAtPos(slot2,h1->getArtAtPos(slot1));
|
||||
sha.setArtAtPos(slot2, a1 ? a1->id : -1);
|
||||
sendAndApply(&sha);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user