thats looks really usfel for my thank you but what if im using shadow strike as a base for the spell is there any diffrence ?I am sure you could have found out how to do this by reading some of the very basic tutorials. However I made it for you.
Base the ability on Channel. I used targets allowed: air,enemies,friend,ground,self,vulnerable
In this simple trigger we first check if the target is allied then we heal the target if the condition returns true.
Second we check if the target is enemy and also check afterwards if its undead. If its undead we deal 100 damage and if its an enemy unit we deal 50 damage.
Holy Bolt
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Holy Bolt
Actions
Set VariableSet HolyBolt_Caster = (Triggering unit)
Set VariableSet HolyBolt_Target = (Target unit of ability being cast)
-------- We should set up damage here --------
-------- We could also add level scaling to set the damage --------
-------- Use Channel ability in the Object editor and set the targets allowed to your desire --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(HolyBolt_Target belongs to an ally of (Owner of HolyBolt_Caster).) Equal to True
Then - Actions
Unit - Set life of HolyBolt_Target to ((Life of HolyBolt_Target) + 50.00)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(HolyBolt_Target belongs to an enemy of (Owner of HolyBolt_Caster).) Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(HolyBolt_Target is Undead) Equal to True
Then - Actions
Unit - Cause HolyBolt_Caster to damage HolyBolt_Target, dealing 100.00 damage of attack type Spells and damage type Magic
Else - Actions
Unit - Cause HolyBolt_Caster to damage HolyBolt_Target, dealing 50.00 damage of attack type Spells and damage type Magic
Else - Actions
Proably not. I guess we can only find out if you test the tigger with shadow strike as base skillthats looks really usfel for my thank you but what if im using shadow strike as a base for the spell is there any diffrence ?
it worksProably not. I guess we can only find out if you test the tigger with shadow strike as base skill
But if you want to use a missile then you should use this Relativistic Missiles [vJASS][LUA][GUI]
You can add the condition checks and the damage/healing to the Missile On Hit trigger then.
it worksjust need find a way to get rid of the shadow daggersound when the bolt hits the target is there avuff i can make that has no effect that will maby shot the sound ?
thx i alredy figerd it outYou can try to set the sound to NONE or alternatively try to change the sound to something else like Holy Light. I think you should also make a custom buff proably with no sound and change that buff to the buff field. Some of the sounds are a bit hard to get rid of![]()
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
![]()
![]()
If - Conditions![]()
![]()
![]()
![]()
(HolyBolt_Target belongs to an ally of (Owner of HolyBolt_Caster).) Equal to True![]()
![]()
![]()
Then - Actions![]()
![]()
![]()
![]()
Unit - Set life of HolyBolt_Target to ((Life of HolyBolt_Target) + 50.00)![]()
something like this ? becuas i think i did it wrong and it dosnt work like i wantedOh just add condition here HolyBolt_Target not equal to undead. And also keep the old condition. Since this by default checks if all conditions are true.