[s1927] Refactor custom maxTargets and Radius into own function

(based on commit [12394] - aba0847)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s1928] Fix some summon spells which have only coordinate targeting

Note: These whole exceptions to enforce a unit-target for spells that simply should not have a unit target is a huge hack anyways, caused by the deficiencies of mangos (old) spell system

(based on commit [12395] - 8b720dd)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s1929] Allow stacking for PERIODIC_DUMMY auras from different casters

It appears to not allow this aura type was just something that got forgotten to include

[ci skip]

(based on commit [12396] - f11d91e)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s1930] Fix client side InCombat state bug

(based on commit [12303] - a956123)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s1931] DBScripts - Add Map/Zone wide sound support to COMMAND_PLAY_SOUND

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

(based on commit [12397] - a42abdb)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
Escape some file names in the cleanupStyle helper script

(based on commit ab2cea1)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s1931] Cleanup Style

(based on commit [12400] - 0472823)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s1932] Add server-side spells 37264, 37278 and 37365

[ci skip]

(based on commit [12401] - ff6390d)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s1933] Fix a Typo

Note: You find a typo, be sure you find all similar typos :)

(based on commit [12402] - ef2de67)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s1934] Fix TARGET_TOTEM_* positions

(based on commit [12406] - 153a8f0)
[s1935] minor CMake cleanup

- execute the CMake version check as the first thing in CMakeLists.txt
- simplify check for out of source build
- removed some unused and commented code

(based on commit [12407] - b775c74)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s1936] Correct a little typo in mangos.conf about MapsLoading log filter.

(based on commit [12404] - 9cd2a00)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s1937] Allow spell effect 77 (ScriptEffect) and aura 226 (PeriodicDummy) to be handled by script library

(based on commit [12409] - fc443ca)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s1938] Fix possible crash due to [s1937]

Thanks Schmoozerd for pointing

(based on commit [12418] - 35ad0ea)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s1939] Improve target selection for TARGET_BEHIND_VICTIM

(based on commit [12411] - 10662ba)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s1940] Improve debug log output for learning/unlearning spells/skills. Thanks to NeatElves for pointing

(based on commit [12412] - d7fa0ee)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s1941] CMake cleanup

* remove unused code
* add TODOs
* move all options to one place
* add all options to the information output
* mark most output as STATUS

(based on commit [12413] - a3fb8b3)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s1942] CMake: strip the trailing newline from ${GIT_RESULT}

(based on commit [12414] - 70c4f60)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s1943] Avoid creature not respawning when not looted.

This occurs when corpse decay time is bigger than respawn time.
This is not blizzlike, to permit a creature respawn when its corpse still exist we need a complete rewrite of creature pool system.

(based on commit [12415] - 5c87c13)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s1944] Add support for XP-Gain disabling

This will maintain compatibility with master, nothing more

Add CONDITION_XP_USER to be able to check if a player has XP-Gain enabled or disabled
Add SCRIPT_COMMAND_XP_USER to enable/disable XP-Gain for a player

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>

(based on commit [12420] - 871161f)

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