Jump to content

Create a new immunity


terrorio
 Share

Recommended Posts

Hey everyone just started learning mangos and it's very interesting, but also like a maze

anyway,

How do you create your own immunities? I want to make a specific immunity for AoE spells

you got 4 possible AoE spells.

SELECT_TARGET_SELF, //Only Self casting

SELECT_TARGET_SINGLE_ENEMY, //Only Single Enemy

SELECT_TARGET_AOE_ENEMY, //Only AoE Enemy

SELECT_TARGET_ANY_ENEMY, //AoE or Single Enemy

Is it hard to create a new immunity and where do I start? looking through the core now and still not getting how immunities work.

I don't know but something like this to start with?:

ApplySpellImmune(spellProto->EffectImplicitTargetA, type, apply);

and then somehow it needs to check for those ImplicitA targets

Thanks :)

Link to comment
Share on other sites

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use