Hello, I am making a Bomberman remake (yes I know there is one already made), and to set a limit for as many bombs that you can plant, I use mana. When you pick up a extra bomb powerup, you should get one more mana to be able to drop 2 bombs at a time, but, the trigger I have for this doesn't work.
Trigger:
I don't see anything wrong with this trigger, can anyone help me?
Trigger:
Code:
Extra Bomb
Events
Unit - A unit Acquires an item
Conditions
(Item-type of (Item being manipulated)) Equal to Extra Bomb
Actions
Set Bombs[1] = (Bombs[1] + 1)
Player - Set Player 1 (Red) Current gold to Bombs[1]
Unit - Increase level of Item Mana Bonus (Least) for (Hero manipulating item)
Unit - Set mana of (Hero manipulating item) to (Real(Bombs[1]))