• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] Spell Immunity Not Checking Dependences

Status
Not open for further replies.
Level 7
Joined
Jul 1, 2008
Messages
1,025
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?
 
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,219
  • 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: 40
Level 7
Joined
Jul 1, 2008
Messages
1,025
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?
 
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
Status
Not open for further replies.
Top