• It's time to dig through Hive's model database and dust off some oldie but goldie models and enter Hive's Texturing Contest #31 : Repurposing! Click here to enter!
  • 🏆 Hive's 5th HD Modeling Contest: Creep Camp is now open! Click here to enter!

[Solved] Spell Immunity Not Checking Dependences

Level 7
Joined
Jul 1, 2008
Messages
1,026
Hi there, I'm making an upgrade that unlocks spell immunity on a unit but the unit seems to have spell immunity even before the upgrade is required even though I've made the spell require this upgrade in the object editor.

I've tried with Archimonde's Spell Immunity and Dryads spell immunity and have ticked the "Check dependances" box.

What am I doing wrong?
 

Bannar

Code Reviewer
Level 26
Joined
Mar 19, 2008
Messages
3,139
I guess it's one of common mistakes. Do you use custom upgrade?

If 'Stats - Transfer with Unit Ownership' field in Upgrade editor (seen after selecting given upgrade) is set to False, you are forced to fill additional field in yours Spell Immunity ability.
To make it clear:

Stats - Transfer with Unit Ownership: False
->> required fields in ability data
Techtree - Requirements: Upgrade-here
Techtree - Levels: 1

Stats - Transfer with Unit Ownership: True
->> required fields in ability data
Techtree - Requirements: Upgrade-here
Second field is not required.
 
Last edited:

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,187
  • some trigger
    • Events
      • Unit - A unit Finishes research
    • Conditions
      • (Researched tech-type) Equal to Cloud
    • Actions
      • Set upgrade_done = True
      • Unit Group - Pick every unit in (Units of type Footman) and do (Actions)
        • Loop - Actions
          • Unit - Add Spell Immunity (Archimonde) to (Picked unit)
  • another trigger
    • Events
      • Unit - A unit Finishes training a unit
    • Conditions
      • (Unit-type of (Trained unit)) Equal to Footman
      • upgrade_done Equal to True
    • Actions
      • Unit - Add Spell Immunity (Archimonde) to (Trained unit)
¨

It works fine for me this way
 

Attachments

  • anti spell upgrade.w3x
    17.1 KB · Views: 37
Level 7
Joined
Jul 1, 2008
Messages
1,026
Spinnaker: I am not being stupid, neither of those options has worked and I can't imagine why they would, the unit is not changing ownership, it has nothing to do with transfer with unit ownership.
Just to clarify the problem is that the unit has the upgrade and even though the Spell immunity Icon looks disabled, so in summary the ability is working even without the upgrade.

Is this spell hardcoded into the editor not to check dependances?
 

Bannar

Code Reviewer
Level 26
Joined
Mar 19, 2008
Messages
3,139
I've been just testing this issue. I realised that truely, spell immunity works even disabled, although I lol'd when I saw the "Spell Immunity" option in Upgrade Editor not working properly either (if you want to know there is such option in Effect of upgrade filter).

Another wonderful war3 bug!
Here you got nice implementation of upgradeable-spell immunity (MPI ofcourse).
 

Attachments

  • Spell Immunity.w3x
    18.3 KB · Views: 41
Top