devilcoredev
devilcoredev
Ok, then i'm opening a pull request.
No, problem. Wait because my pc is really, really slow. I'm working for do it faster :D
https://github.com/TrinityCore/TrinityCore/pull/4213 we can talk of the fix on this pull request :)
I think that what has sayed Fredi is right. So i think that the right check is: if (spellInfo->Effects[i].Mechanic || (!spellInfo->Effects[i].Mechanic && !IsImmunedToSpellEffect(spellInfo, i))) immuneToAllEffects = false; And if (!spellInfo->Effects[i].Mechanic)...
But if the spell has all mechanics it will return immune without check for effect immunities. Isn't it wrong?
Ok, i'm fixing it :D thanks
Done: bd80d35 With this: - If the spell has a mechanic will not return true (check is done separately), - If the spell has not a mechanic and is immune...
08bcbc89b04b5848596ec6073d3d7ef9e98b4dec
When the target dodges the spell, are you moving behind him or are you immobile?
If it was moving can be that the caster doesn't count as behind the target for the emulator and the spell count as dodgable...