Hello! Can someone tell me why this happens? It triggers twice for every item dropped on death.

-
Bagheera save items
-

Events
-


Unit - A unit Loses an item
-
-

Conditions
-


(Hero manipulating item) Equal to bagheera_Unit
-


(bagheera_Unit is dead) Equal to True
-
-

Actions
-


Game - Display to (All players) the text: (Name of (Item being manipulated))
-


For each (Integer A) from 1 to 4, do (Actions)
-



Loop - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






Bagheera_Items[(Integer A)] Equal to Cheese
-
-





Then - Actions
-






Set Bagheera_Items[(Integer A)] = (Item-type of (Item being manipulated))
-






Item - Remove (Item being manipulated)
-






Game - Display to (All players) the text: (String((Integer A)))
-






Skip remaining actions
-
-





Else - Actions
-
-
-
-
-

