hi, im making a spell that is able to control other heroes and units, using
"mind control systems by redscores V1.01"
Question: How do i disable so that my spell wont be able to be casted on a magic immune heroes?
"mind control systems by redscores V1.01"
Question: How do i disable so that my spell wont be able to be casted on a magic immune heroes?
-
custom spell
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Possess unit
-
Actions
- If (((Targeted unit) is Magic Immune) Equal to True) then do (Skip remaining actions) else do (Do nothing)
- -------- Sets the unit which possesses the target unit on his side. --------
- Set MCS_Caster1 = (Triggering unit)
- -------- Sets the target of the mind control. --------
- Set MCS_Target1 = (Target unit of ability being cast)
- -------- Sets the duration of the mind control --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Possess unit for (Casting unit)) Equal to 1
-
Then - Actions
- If (((Targeted unit) is Magic Immune) Equal to True) then do (Skip remaining actions) else do (Do nothing)
- Set MCS_Duration1 = 1.00
- -------- Sets the string of a special effect which is shown at the end of the mind control. --------
- Set MCS_SfxAtEndString = Abilities\Spells\Orc\AncestralSpirit\AncestralSpiritCaster.mdl
- -------- Sets the string of a special effect which is shown at the start of the mind control. --------
- Set MCS_SfxAtStartString = Abilities\Spells\Items\AIre\AIreTarget.mdl
- -------- Sets the string of a special effect which is shown at MCS_AttachmentPoint1 for the whole mind control time. --------
- Set MCS_SfxContinous1String = Abilities\Weapons\IllidanMissile\IllidanMissile.mdl
- -------- Sets the string of a special effect which is shown at MCS_AttachmentPoint2 for the whole mind control time. --------
- Set MCS_SfxContinous2String = Abilities\Weapons\IllidanMissile\IllidanMissile.mdl
- -------- Sets the attachment point for the MCS_SfxContinous1 SFX. --------
- Set MCS_AttachmentPoint1 = hand, left
- -------- Sets the attachment point for the MCS_SfxContinous2 SFX. --------
- Set MCS_AttachmentPoint2 = hand, right
- -------- The function below is always recommended. --------
- Trigger - Run PossessAUnit <gen> (checking conditions)
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Possess unit for (Casting unit)) Equal to 2
-
Then - Actions
- If (((Targeted unit) is Magic Immune) Equal to True) then do (Skip remaining actions) else do (Do nothing)
- Set MCS_Duration1 = 5.00
- -------- Sets the string of a special effect which is shown at the end of the mind control. --------
- Set MCS_SfxAtEndString = Abilities\Spells\Orc\AncestralSpirit\AncestralSpiritCaster.mdl
- -------- Sets the string of a special effect which is shown at the start of the mind control. --------
- Set MCS_SfxAtStartString = Abilities\Spells\Items\AIre\AIreTarget.mdl
- -------- Sets the string of a special effect which is shown at MCS_AttachmentPoint1 for the whole mind control time. --------
- Set MCS_SfxContinous1String = Abilities\Weapons\IllidanMissile\IllidanMissile.mdl
- -------- Sets the string of a special effect which is shown at MCS_AttachmentPoint2 for the whole mind control time. --------
- Set MCS_SfxContinous2String = Abilities\Weapons\IllidanMissile\IllidanMissile.mdl
- -------- Sets the attachment point for the MCS_SfxContinous1 SFX. --------
- Set MCS_AttachmentPoint1 = hand, left
- -------- Sets the attachment point for the MCS_SfxContinous2 SFX. --------
- Set MCS_AttachmentPoint2 = hand, right
- -------- The function below is always recommended. --------
- Trigger - Run PossessAUnit <gen> (checking conditions)
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Possess unit for (Casting unit)) Equal to 3
-
Then - Actions
- If (((Targeted unit) is Magic Immune) Equal to True) then do (Skip remaining actions) else do (Do nothing)
- Set MCS_Duration1 = 15.00
- -------- Sets the string of a special effect which is shown at the end of the mind control. --------
- Set MCS_SfxAtEndString = Abilities\Spells\Orc\AncestralSpirit\AncestralSpiritCaster.mdl
- -------- Sets the string of a special effect which is shown at the start of the mind control. --------
- Set MCS_SfxAtStartString = Abilities\Spells\Items\AIre\AIreTarget.mdl
- -------- Sets the string of a special effect which is shown at MCS_AttachmentPoint1 for the whole mind control time. --------
- Set MCS_SfxContinous1String = Abilities\Weapons\IllidanMissile\IllidanMissile.mdl
- -------- Sets the string of a special effect which is shown at MCS_AttachmentPoint2 for the whole mind control time. --------
- Set MCS_SfxContinous2String = Abilities\Weapons\IllidanMissile\IllidanMissile.mdl
- -------- Sets the attachment point for the MCS_SfxContinous1 SFX. --------
- Set MCS_AttachmentPoint1 = hand, left
- -------- Sets the attachment point for the MCS_SfxContinous2 SFX. --------
- Set MCS_AttachmentPoint2 = hand, right
- -------- The function below is always recommended. --------
- Trigger - Run PossessAUnit <gen> (checking conditions)
-
Else - Actions
- Do nothing
-
If - Conditions
-
Events