I made this trigger but its not working the way i wanted it to 
A unit picks up a Barrett M82 gun,then when that unit tries to pick up another Barrett M82 it will drop that item,or in other words,how to make a unit NOT have the same item in its inventory more than twice.(like u cant have 2 Barrett M82s but u can pick up other weapons,but it must not be that same weapon(item) u have.
But instead this is what happens:
A unit attempts to pick up a Barrett M82 but it always drops it(but the inventory is empty,there is no other Barrett M82 in any slot of the inventory)
Please help me to fix that trigger.

-
Untitled Trigger 002 Copy
-

Events
-


Unit - A unit Acquires an item
-
-

Conditions
-


(Item-type of (Item being manipulated)) Equal to Barrett M82
-


Or - Any (Conditions) are true
-



Conditions
-




(Item-type of (Item carried by (Hero manipulating item) in slot 1)) Equal to Barrett M82
-




(Item-type of (Item carried by (Hero manipulating item) in slot 2)) Equal to Barrett M82
-




(Item-type of (Item carried by (Hero manipulating item) in slot 3)) Equal to Barrett M82
-




(Item-type of (Item carried by (Hero manipulating item) in slot 4)) Equal to Barrett M82
-




(Item-type of (Item carried by (Hero manipulating item) in slot 5)) Equal to Barrett M82
-




(Item-type of (Item carried by (Hero manipulating item) in slot 6)) Equal to Barrett M82
-
-
-
-

Actions
-


Hero - Drop (Item being manipulated) from (Hero manipulating item)
-
-
A unit picks up a Barrett M82 gun,then when that unit tries to pick up another Barrett M82 it will drop that item,or in other words,how to make a unit NOT have the same item in its inventory more than twice.(like u cant have 2 Barrett M82s but u can pick up other weapons,but it must not be that same weapon(item) u have.
But instead this is what happens:
A unit attempts to pick up a Barrett M82 but it always drops it(but the inventory is empty,there is no other Barrett M82 in any slot of the inventory)
Please help me to fix that trigger.




,but how do i do that when a unit drops an item then other player's units cant pick it up?