Now check that character has a valid gender (and not an invalid via packet modifications).
This check works when trying to create a character or when building the character list.
If gender is invalid (neither male nor female): can't create the character and can't see in the characters' list (and also can't login with it via packet modding).
Signed-off-by: Anubisss <[email protected]>
Make a list of GUIDs that purpose is which characters can login per account.
This fixes an exploit that player can login (but shouldn't) with packet manipulation.
Signed-off-by: Anubisss <[email protected]>
This crash happens when effect is SPELL_EFFECT_TALENT_SPEC_SELECT and the caster is not a player.
You should always check object's type (or sure that object is 101% a player) before you use ToPlayer() casting function.
Signed-off-by: Anubisss <[email protected]>
Passive auras are not dispelable.
This fixes a bug like spell Omen of Clarity (16864) can be dispelled by Purge (370) if you have a non passive aura like Mark of the Wild (1126).
Signed-off-by: Anubisss <[email protected]>