canons200
New Member
- Reaction score
- 50
Do anyone has any experience to turn off mana shield as an item via trigger while mana shield is activated?
i make the trigger below, it works when the unit intends to activate mana shield, but it fails when the unit wants to deactivate mana shield.
The above trigger is working as the test is shown. However the below text didn't show when i pressed the item after the mana shield is activated.
i try both way to turn off the mana shield, remove the item and deactivate mana shield, but it looks like the trigger can't detect the event "A unit Uses an item" while mana shield is activated.
I, of course, do manually drop put the item from the unit, it is obviously turning off the mana shield as the item is detached from unit.
So now, as i stated above, how to turn off mana shield via trigger rather than manually put down the item?
i make the trigger below, it works when the unit intends to activate mana shield, but it fails when the unit wants to deactivate mana shield.
Trigger:
- Turn On Mana Shield
- Events
- Unit - A unit Uses an item
- Conditions
- (Item-type of (Item being manipulated)) Equal to Mana Guard Fake
- Actions
- Item - Remove (Item being manipulated)
- Trigger - Turn off Turn Off Mana Shield <gen>
- Hero - Create Mana Guard Real and give it to (Triggering unit)
- Hero - Order (Triggering unit) to use (Last created item)
- Game - Display to (All players) the text: Mana shield is on.
- Trigger - Turn on Turn Off Mana Shield <gen>
- Events
The above trigger is working as the test is shown. However the below text didn't show when i pressed the item after the mana shield is activated.
Trigger:
- Turn Off Mana Shield
- Events
- Unit - A unit Uses an item
- Conditions
- (Item-type of (Item being manipulated)) Equal to Mana Guard Real
- Actions
- Unit - Order (Triggering unit) to Neutral Naga Sea Witch - Deactivate Mana Shield
- Item - Remove (Item being manipulated)
- Hero - Create Mana Guard Fake and give it to (Triggering unit)
- Game - Display to (All players) the text: Mana shield is off.
- Events
i try both way to turn off the mana shield, remove the item and deactivate mana shield, but it looks like the trigger can't detect the event "A unit Uses an item" while mana shield is activated.
I, of course, do manually drop put the item from the unit, it is obviously turning off the mana shield as the item is detached from unit.
So now, as i stated above, how to turn off mana shield via trigger rather than manually put down the item?