well here i am again ^^ the trigger is supposed to give an item to the caster of an ability, depending on the type of the destructable that the ability was cast on. ive checked it out, and found out that its the condition that doesnt work. Here it comes
-
Finish Gather
-
Events
-
Unit - A unit Finishes casting an ability
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Destructible-type of (Target destructible of ability being cast)) Equal to Ashenvale Tree Wall
-
-
Then - Actions
-
Hero - Create |cffffcc00Bundle of lumber|r and give it to (Casting unit)
-
-
Else - Actions
-
Do nothing
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Destructible-type of (Target destructible of ability being cast)) Equal to Mushrooms
-
-
Then - Actions
-
Hero - Create |cffffcc00A mushroom|r and give it to (Casting unit)
-
-
Else - Actions
-
Do nothing
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Destructible-type of (Target destructible of ability being cast)) Equal to Rocks
-
-
Then - Actions
-
Hero - Create |cffffcc00A stone|r and give it to (Casting unit)
-
-
Else - Actions
-
Do nothing
-
-
-
Animation - Reset (Casting unit)'s animation
-
Trigger - Turn off (This trigger)
-
Custom script: call DestroyTrigger(GetTriggeringTrigger())
-
-