- Joined
- Jun 27, 2010
- Messages
- 2,710
Is there spell in wc3 that makes the unit immune to polymorph effect only, not magic at all. I tried with resistant skin, but it doesn't help.
Yes, there is no way without triggering, but maybe you could do it if you edit Data - Maximum Creep Level field (5 by default), and make the level of a unit to something higher. However, by increasing the level, unit also gains immunity to some other abilities (Charm, Transmute, Possession...).The short answer is no. By using standard Warcraft 3 abilities with no triggering a unit will either be immune to all effects or none.
Triggers
- Untitled Trigger 003
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Polymorph
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Y Equal to 0
- Then - Actions
- Trigger - Turn on Untitled Trigger 004 <gen>
- Else - Actions
- Set Y = (Y + 1)
- Set TargetUnit[Y] = (Target unit of ability being cast)
- Set Buff[Y] = True
- Untitled Trigger 004
- Events
- Time - Every 0.03 seconds of game time
- Conditions
- Actions
- For each (Integer X) from 1 to Y, do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Buff[X] Equal to True
- Then - Actions
- Set Buff[X] = False
- Unit - Remove Polymorph buff from TargetUnit[X]
- Set X = (X - 1)
- Set Y = (Y - 1)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Y Equal to 0
- Then - Actions
- Trigger - Turn off (This trigger)
- Else - Actions
- Else - Actions
just unit begins casting an ability then? or that doesn't work either? In worst case scenario add 0.00 wait.
edit:
works, confirmed.
- Untitled Trigger 001
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- Actions
- Wait 0.00 seconds
- Unit - Remove Polymorph buff from (Target unit of ability being cast)
edit2: use this to make it MUI.
- Untitled Trigger 001 Copy
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- Actions
- Custom script: local unit u = GetSpellTargetUnit()
- Custom script: set udg_unit = u
- Wait 0.00 seconds
- Unit - Remove Polymorph buff from unit
- Custom script: set u = null