[s2021] Fix SpellDamage modifier of SPELL_AURA_MOD_DAMAGE_DONE_CREATURE

This aura modifies a flat value, not a percent value.

Related cmangos/cmangos-classic#26

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>

(based on commit [12508] - 17a4097)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s2022] Fix take ammo for most ranged spells

Fix spells like Arcane Shot not taking ammo while they should

Signed-off-by: cala <calaftp@free.fr>
Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>

(based on commit [12510] - c8b2a94)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s2023] Fix invisible spirit healers & such on death near them

This fixes an issue that occurs if you die close to a spirit healer/guide.

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>

(based on commit [12511] - d260c9a)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s2024] Implement some spells for Felmyst encounter

Spell entries: 45714, 45717 and 45918. Limit targets of spell 45391
Also add stacking exception for auras 45068 and 45582

(based on commit [12512] - 256f99a)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s2025] Fixup commit s2023 Thanks to Zakamurite for pointing

Also thanks to him for giving a helping hand in correcting the commit

(based on commit [12513] - 3348191)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s2026] Forward original caster GUID to script library

(based on commit [12514] - 48f941c)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s2027] EventAI: Implement ACTION_T_SET_THROW_MASK (46)

This Action can be used to set which AIEvents should be thrown automatically, if you need more flexibility, you can always use the manual ACTION_TH_THROW_AI_EVENT version.

* Also clean some error-log output a bit.

(based on commit [12515] - e6930bd)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s2028] EventAI: Improve code

* Drop rather pointless bool to check if the number of assigned events is empty
* Before the phase was resetted on death if and only if the npc has Events defined
* DoMeleeAttackIfReady could have been called even though combat state could have changed while processing events

(based on commit [12516] - 70392e3)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s2029] Do not remove FLY auras on Evade

Also consider npcs which have SPELL_AURA_FLY as being able to fly

(based on commit [12517] - 84ff67d)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s2030] Enable resummoning of warlock pets

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>

(based on commit [12518] - 899da20)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s2031] Allow player pets to swim

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>

(based on commit [12519] - 19ac94d)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s2032] Allow spell effect 86 - Activate Object to use the misc value

(based on commit [12520] - 9ef7429)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s2033] Add stacking exception for spells 39993 and 40041

(based on commit [12521] - f7a64eb)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>