Trigger:
- Mana bomb
- Events
- Unit - A unit Spawns a summoned unit
- Conditions
- (Unit-type of (Summoned unit)) Equal to Mana Bomb Dummy
- Actions
- Set ManaBombCaster = (Summoning unit)
- Unit Group - Add (Summoning unit) to ManaBombCasterGroup
- Set Temp_Point = (Position of ManaBombCaster)
- Unit - Create 1 FlameStrike Effect for (Owner of ManaBombCaster) at Temp_Point facing Default building facing degrees
- Unit - Pause ManaBombCaster
- Set Temp_Group1 = (Units within 500.00 of Temp_Point matching ((((Matching unit) is alive) Equal to True) and ((((Matching unit) belongs to an enemy of (Owner of ManaBombCaster)) Equal to True) and (((Matching unit) is Magic Immune) Equal to False))))
- Animation - Change (Summoned unit) flying height to 100.00 at 200.00
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Summoned unit) is alive) Equal to True
- Then - Actions
- Do nothing
- Else - Actions
- Unit Group - Pick every unit in ManaBombCasterGroup and do (Unit - Unpause (Picked unit))
- Sound - Play H01VillagerC38 <gen> at 100.00% volume, located at Temp_Point with Z offset 0.00
- Unit - Create 1 Mana Bomb Cast Dummy for (Owner of (Random unit from ManaBombCasterGroup)) at Temp_Point facing Default building facing degrees
- Unit Group - Pick every unit in Temp_Group1 and do (Actions)
- Loop - Actions
- Unit - Cause (Last created unit) to damage (Picked unit), dealing ((Mana of ManaBombCaster) + (Real((Level of WitchWMC - Mana Bomb for ManaBombCaster)))) damage of attack type Spells and damage type Normal
- Unit - Create 1 Mana Bomb Effect for Neutral Passive at Temp_Point facing Default building facing degrees
- Loop - Actions
- Unit - Set mana of ManaBombCaster to 0.00%
- Custom script: call DestroyGroup(udg_Temp_Group1)
- Custom script: call RemoveLocation(udg_Temp_Point)
- If - Conditions
- Events
Basically, when the witch summons a mana bomb, it drops from 1000 height to 100, then blows up, dealing dmg based on her mana and level of the skill. but, somehow it doesn't do any damage and she doesn't get unpaused.. where is the mistake?