I'm making damage bonus trigger for my pokemon map. Here's the trigger:
I have added all bug pokemon to group "bug " and all grass pokemon to group "grass" etc... So, what this trigger should do is to deal damage to dark, grass and psychic pokemon if attacking unit is a bug pokemon. I tried the trigger with bug and grass pokemon, and grass dealt extra damage to bug, although bug should deal extra damage to grass. What's wrong with the trigger?
Code:
Attack Bonus
Events
Unit - A unit Is attacked
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Attacking unit) is in Bug) Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
((Attacked unit) is in Fire) Equal to True
((Attacked unit) is in Flying) Equal to True
((Attacked unit) is in Fighting) Equal to True
((Attacked unit) is in Ghost) Equal to True
((Attacked unit) is in Steel) Equal to True
Then - Actions
Unit - Cause (Attacking unit) to damage (Attacked unit), dealing (-2.00 x (Real((Hero level of (Attacking unit))))) damage of attack type Normal and damage type Normal
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
((Attacked unit) is in Dark) Equal to True
((Attacked unit) is in Grass) Equal to True
((Attacked unit) is in Psychic) Equal to True
Then - Actions
Unit - Cause (Attacking unit) to damage (Attacked unit), dealing (2.00 x (Real((Hero level of (Attacking unit))))) damage of attack type Normal and damage type Normal
Else - Actions
Else - Actions