- Joined
- Jul 19, 2007
- Messages
- 855
I have a passive skill in my map that is imported from a spellpack and it works like to give the Hero with the skill a chance to damage and slow enemies that's attacking her but I don't want it to damage and slow enemies that's casting spells on her I only want normal physical attacks to be able to take damage and being slowed. How can I fix that? Here is triggers for the skill.
-
Thorn Armor Config
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
-------- Set the base damage (Level 1) --------
-
Set VariableSet TA_BaseDamage = 20.00
-
-------- Set the damage growth per each additional level --------
-
Set VariableSet TA_DamageGrowth = 20.00
-
-------- Set the base chance (Level 1) --------
-
Set VariableSet TA_BaseChance = 10
-
-------- Set the chance growth per each additional level --------
-
Set VariableSet TA_ChanceGrowth = 5
-
-------- Set the special effect --------
-
Set VariableSet TA_SFX = Shot II Blue.mdx
-
-
-
Thorn Armor
-
Events
-
Game - GDD_Event becomes Equal to 0.00
-
-
Conditions
-
(GDD_DamagedUnit has buff Untouchable (Armor)) Equal to True
-
-
Actions
-
Set VariableSet TA_Levels = (Level of Untouchable for GDD_DamagedUnit)
-
Set VariableSet TA_ThornSpawn = (Position of GDD_DamagedUnit)
-
Set VariableSet TA_ThornEffect = (Position of GDD_DamageSource)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Random integer number between 1 and 100) Less than or equal to (TA_BaseChance + (TA_ChanceGrowth x (TA_Levels - 1)))
-
(GDD_DamageSource is A structure) Not equal to True
-
(GDD_DamageSource is A flying unit) Not equal to True
-
-
Then - Actions
-
Special Effect - Create a special effect at TA_ThornEffect using TA_SFX
-
Special Effect - Destroy (Last created special effect)
-
Trigger - Turn off (This trigger)
-
Unit - Cause GDD_DamagedUnit to damage GDD_DamageSource, dealing (TA_BaseDamage + (TA_DamageGrowth x ((Real(TA_Levels)) - 1.00))) damage of attack type Spells and damage type Magic
-
Trigger - Turn on (This trigger)
-
Unit - Create 1 Thorn Armor Dummy for (Owner of GDD_DamagedUnit) at TA_ThornSpawn facing Default building facing degrees
-
Set VariableSet Thorn_Dummy = (Last created unit)
-
Unit - Add a 1.00 second Generic expiration timer to Thorn_Dummy
-
Unit - Add Untouchable (slow) to Thorn_Dummy
-
Unit - Order Thorn_Dummy to Human Sorceress - Slow GDD_DamageSource
-
-
Else - Actions
-
-
Custom script: call RemoveLocation(udg_TA_ThornSpawn)
-
Custom script: call RemoveLocation(udg_TA_ThornEffect)
-
-