I'm toying with this hero whose ultimate is Chaos Storm, which basically makes a decent radius around him explode in pretty special effects. Is there anyway to make sure it doesn't damage allies? I'm unfamiliar with all the damage types like normal vs. universal vs. whatever. I assume, based on testing, that universal skips resistance mechanics. Code should be fairly straight-forward.
Trigger:
- Chaos Storm
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Chaos Storm (Warlord)
- Actions
- Set SkillLevel = (Level of Chaos Storm (Warlord) for (Triggering unit))
- Set SkillLevelReal = (Real(SkillLevel))
- For each (Integer A) from 1 to 50, do (Actions)
- Loop - Actions
- Set Casterpoint = (Position of (Triggering unit))
- Set Targetpoint = (Random point in (Region centered at Casterpoint with size (600.00, 600.00)))
- Special Effect - Create a special effect at Targetpoint using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
- Unit - Cause (Triggering unit) to damage circular area after 0.05 seconds of radius 150.00 at Targetpoint, dealing (Random real number between 0.00 and (60.00 x SkillLevelReal)) damage of attack type Spells and damage type Normal
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_Targetpoint)
- Set Targetpoint = (Random point in (Region centered at Casterpoint with size (600.00, 600.00)))
- Special Effect - Create a special effect at Targetpoint using Objects\Spawnmodels\Other\NeutralBuildingExplosion\NeutralBuildingExplosion.mdl
- Unit - Cause (Triggering unit) to damage circular area after 0.05 seconds of radius 150.00 at Targetpoint, dealing (15.00 + (15.00 x SkillLevelReal)) damage of attack type Spells and damage type Normal
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_Targetpoint)
- Set Targetpoint = (Random point in (Region centered at Casterpoint with size (600.00, 600.00)))
- Special Effect - Create a special effect at Targetpoint using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
- Unit - Cause (Triggering unit) to damage circular area after 0.05 seconds of radius 150.00 at Targetpoint, dealing (Random real number between (15.00 x SkillLevelReal) and (45.00 x SkillLevelReal)) damage of attack type Spells and damage type Normal
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_Targetpoint)
- Custom script: call RemoveLocation(udg_Casterpoint)
- Wait 0.25 game-time seconds
- Loop - Actions
- Events