[11961] Fix logic bug in 11954. Should fix most spells of issue #44
[11962] Add support for Creature List of Entry in Range grid searcher

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
[11963] Add additional check for game_events, invalid occurence

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
[11964] Implement new conditions system

Tree-like design idea by Faramir118, thanks for that!

* Add `conditions` table to store conditions.
* REPLACE current handling of conditions for the *_loot_template tables
  Convert the old conditions in *_loot_template to the new system by SQL-Queries
* ADD support for new conditions to gossip_menu and gossip_menu_option.
  If for these tables no condition_id (new system) is provided, the old conditions will still be used
* Add a small helper python script to contrib/convertConditions, see README there for details
* Add new command to reload the `conditions` table (.reload conditions)
* Add two Meta-Condition types CONDITION_AND (-1) and CONDITION_OR (-2) which are used as:
  value1 (as condition_entry) AND / OR value2 (as condition_entry)

  With these meta-conditions it is possible to create tree like and very complicated combined conditions (like HasAura && (HasItem || HasQuest))

NOTE about conversion:
For easier convertion all the old table data is still preserved, but will be removed eventually (within a circle of the moon approximately)
The python script will not create an optimal initial fill of the `conditions` table. You might want to tweak it manually or suggest some optimized algorithm :)

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
[11965] Tweak comment about default config values
[11966] Replace an ASSERT to prevent unnecessairy crashes

GetAngle can be called for self from very many places, not only DB-errors, hence adding the assert is too strong in the moment

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
[11967] Fix mangos.sql. Thanks to NicolasQuasar for pointing. Fix issue #45
[11968] Add support for range dependend slave/master

Add new column `search_radius` to `creature_linking_template`.
If this column is used (value > 0), master and slave are linked together if and only if they have their respawn coordinates within this range (point-to-point distance calculation)
Note that linked spawning is slower this way and should only be used if required

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
[11969] Fix compile from last commit for some compilers. Thanks to LordJz for pointing
[11970] Implement aura 24210 (overwrite for removed spell 24311

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
[11971] Add wrapper HasAttribute to check if a spell has an attribute

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
[11972] Remove partial DummyEffect implementation of spells 8593, 31225

Both belong to Paladin Resurrection quests. And they are expected to be handled by SD2

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
Merge branch 'master' of git://github.com/mangos/mangos into ai
[11973] Various Cleanups

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
[11974] Fix spell targeting for some spells like 20243

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
[11975] Use a few more enums instead of magic numbers
[11976] Fix some spell visuals (for spells like 39179)
[11977] More uses of wrappers introduced in 11971

Also fix a typo that caused problems with Stances

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
[11978] Remove outdated comment

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
[11979] Remove ReqSourceItems when rewarding or abandoning a quest

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