Closed beibarys98 closed 3 years ago
I will test your code tomorrow, but I'm not sure it's totally right...
Like if you cancel the movement of the active character after a trade, items that this character earned from trade go back to original owner, good. But what if the active player sent an item to another character... I'm not sure that this other character will loose the item after cancelling.
Ok I tried your code and there seems to be only one bug.
Like I said, if the active character send an item to another one, this another character would keep the item after cancelling.
Exact situation :
Select character A -> Make a trade with character B -> A send an item to B -> Cancel turn -> Both characters will have the item
ok. started working on a fix where it would return to the selected player if he gives items. today or tomorrow must be ready.
when you right_click, items you traded goes back to the owner and are removed from the receiver