- Joined
- Apr 16, 2025
- Messages
- 160
I reduced the trigger to the maximum for better demonstration. Why doesn't it work? If it worked, the unit's illusions would have crits, but no. (as a test, I added crits via the object editor = and illusions had crits).
I set both variables appropriately, one was set via map initialization. But it doesn't work...
p.s. I have 300 types of units on the map. I can't add this ability to each one through the object editor.
I set both variables appropriately, one was set via map initialization. But it doesn't work...
p.s. I have 300 types of units on the map. I can't add this ability to each one through the object editor.
-
TEST
-

Events
-


Unit - A unit enters (Playable map area)
-
-

Conditions
-

Actions
-


Set VariableSet TempUnit = (Triggering unit)
-


Unit - Add Critical Strike (Difficulty) to (Triggering unit)
-


Custom script: call UnitMakeAbilityPermanent(udg_TempUnit, true, udg_DifficultySpell)
-
-




