Demon sanctuary possible?

Post here about all aspects of D2 mod making whether it's information, problems or whatever. Please specify whether your post is relating to Classic D2 or the Expansion.

Moderator: Nizari

Post Reply
kulasdq
Posts: 37
Joined: Tue May 04, 2021 6:04 pm
United States of America

Demon sanctuary possible?

Post by kulasdq » Tue Nov 23, 2021 6:25 pm

Hi, tried to create a sanctuary aura that only works on demons. What would be the aurafilter? The aurastat can be easily filled in to make the additional melee dmg only applies to demons. but to make the aura damage and knockback only apply to demons, I assume there must be a specific code for aurafilter.

User avatar
Cypress
Moderator
Champion of the Light
Posts: 444
Joined: Fri Dec 01, 2017 2:08 am

Re: Demon sanctuary possible?

Post by Cypress » Tue Nov 30, 2021 9:01 pm

Hi kulasdq, unfortunately there isn't a whole lot you can do. There is no aurafilter for demons, only undead. The aurastat also isn't quite equivalent to Sanctuary's hardcoded ability to ignore undead resistances, notably the stat only ignores physical resistances when attacking, whereas Sanctuary ignores undead physical resistances even when using spells such as Tornado.

Also, make sure you add the stat skill_bypass_demons to passivestats, not aurastats. Auras with srvdofunc=66 only give their passivestats to the user, the aurastats are not given to the user. Technically, Sanctuary does not even give its skill_bypass_undead to the player at all, all of the undead resistance ignoring is from the hardcoded nature of the sanctuary state.

One thing you can do is make it your Demon Sanctuary kind of special is to use hitflag=512, which will make the radial magic damage ignore demon resistances/immunities (although if that is the case, you'd have to make it so the skill hits everything, since there is no aurafilter for demons specifically).

Thinking about it though, it might be possible to get close to what you want, but it probably wouldn't be possible to make an aura out of it (technically you could, but it would require a different setup and have a few drawbacks). Basically, you'd make an Armageddon clone, make it shoot out (probably invisible) holy bolt novas, set the holy bolts to only hit demons, give the holy bolts knockback. You can also tack on Blade Shield's srvstfunc so that you gain aurastats while the skill is active.

Post Reply

Return to “General Mod Making”