@percy101, you need an ability that only shows effect, I will use Finger of Death (deal no damage and no lightning effect), and create a trigger like this:
Trigger:
- Holy Disruption
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Holy Disruption
- Actions
- Set TempUnit = (Triggering unit)
- Set TempUnit2 = (Target unit of ability being cast)
- Set TempReal = (40.00 + (20.00 x (Real((Level of Holy Disruption for TempUnit)))))
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (TempUnit2 belongs to an ally of (Owner of TempUnit)) Equal to True
- Then - Actions
- Unit - Set life of TempUnit2 to ((Life of TempUnit2) + (TempReal / 2.00))
- Else - Actions
- Unit - Cause TempUnit to damage TempUnit2, dealing TempReal damage of attack type Spells and damage type Divine
when a unit cast "Holy Disruption", store the caster and the target into variable (TempUnit and TempUnit2), calculate the damage and store it into variable (TempReal)
then check if the target is an ally with the caster, if so, heals (Set Life) the target, otherwise deals damage to it.
pretty simple, I think.
I attached a demo map, have a look. :thup: