[c12700] 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)
[c12701] Check cast spell 51690

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

(based on commit [12509] - 0b2324c)

Signed-off-by: Dramacydal <PulLumBerMal@gmail.com>
[c12702] Fix take ammo for most ranged spells

Fix spells like Arcane Shot not taking ammo while they should

Close cmangos/mangos-tbc#19

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

(based on commit [12510] - c8b2a94)

Signed-off-by: Dramacydal <PulLumBerMal@gmail.com>
[c12703] Fix invisible spirit healers & such on death near them

This fixes an issue that occurs if you die close to a spirit healer/guide.
Close cmangos/mangos-tbc#18

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

(based on commit [12511] - d260c9a)
[c12704] 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)
[c12705] Fixup commit 12511 Thanks to Zakamurite for pointing

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

(based on commit [12513] - 3348191)
[c12706] Forward original caster GUID to script library

(based on commit [12514] - 48f941c)

Signed-off-by: Dramacydal <PulLumBerMal@gmail.com>
[c12707] 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)
[c12708] 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)
[c12709] 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)
[c12710] Enable resummoning of warlock pets

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

(based on commit [12518] - 899da20)
[c12711] Allow player pets to swim

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

(based on commit [12519] - 19ac94d)
[c12712] Allow spell effect 86 - Activate Object to use the misc value

Close cmangos/issues#220

(based on commit [12520] - 9ef7429)

Signed-off-by: Dramacydal <PulLumBerMal@gmail.com>
[c12713] Add stacking exception for spells 39993 and 40041

(based on commit [12521] - f7a64eb)