* Fix usage of Gnomish Universal Remote (ItemID: 7506)
https://classic.wowhead.com/item=7506/gnomish-universal-remote
Will now apply correct random spells :
Spells : 8345 - Control the machine | 8346 = Malfunction the machine (root) | 8347 = Taunt/enrage the machine
* Fix Spells "Hate to Zero"
https://classic.wowhead.com/spell=9204/hate-to-zero#see-also-other
SpellIDs : 9204 | 20538 | 26569 | 26637
* Upgrade Unit::RemoveAllAurasOnEvade method
As specific list of spell used when evading to remove all auras except some special auras
* Fix npc_escortAI - Properly despawn pets that act as escorts
Thanks to caa548ca7d
* Fix autoshot not reinstating 0.5 sec cooldown on stopping (adapt Unit::IsNonMeleeSpellCasted method)
Source : 20602b3ead
This fix needed to rewrite and add more stuff to be fully ported from CMangos.
* Fix build compile
Implement "IsClientControlled()" missing
Rename some defines to match CMangos ones which are more relevant and would facilitate backports.
* Various fixes.
- Fix PCH build on *nix
- Silenced some compiler warnings
* Another small fixes.
- Mails sent by various GM commands are now not returnable / respondable
- Fix server startup issue due to incorrect map magic version.
The code is checking the database value against 1 << spellInfo->School so it should match the spell schools defined in the code (SharedDefines.h). Or translated into bits and mask values you can use in the database:
SPELL_SCHOOL_NORMAL = bit 0 (0x00000001)
SPELL_SCHOOL_HOLY = bit 1 (0x00000002)
SPELL_SCHOOL_FIRE = bit 2 (0x00000004)
SPELL_SCHOOL_NATURE = bit 3 (0x00000008)
SPELL_SCHOOL_FROST = bit 4 (0x00000010)
SPELL_SCHOOL_SHADOW = bit 5 (0x00000020)
SPELL_SCHOOL_ARCANE = bit 6 (0x00000040)
* Fix "You are in combat" bug.
Ideas taken from TC
* Correct previous commit.
* Improved previous commits
- Creatures in dungeons will not remove distant players from their threat list
- Creatures in non dungeon maps will properly remove the distant players from their threat lists and also players auras from them
* Fix previous commit.
-The creatures will remain tapped by the initial attacker.
-Fix the loot bug
* Fix Charge bug.
-Corrected WorldObject::GetContactPoint to proper compute the final destination point.
-Corrected WorldObject::UpdateAllowedPositionZ to proper adjust the Z value
-Limit the path length computed for EffectCharge. In the event the path cannot be computed, a linear path is applied.
* Fix "You are in combat" bug.
Ideas taken from TC
* Correct previous commit.
* Improved previous commits
- Creatures in dungeons will not remove distant players from their threat list
- Creatures in non dungeon maps will properly remove the distant players from their threat lists and also players auras from them
* Fix previous commit.
-The creatures will remain tapped by the initial attacker.
-Fix the loot bug
* Fix "You are in combat" bug.
Ideas taken from TC
* Correct previous commit.
* Improved previous commits
- Creatures in dungeons will not remove distant players from their threat list
- Creatures in non dungeon maps will properly remove the distant players from their threat lists and also players auras from them
With the introduction of user-defined literals in C++11, code that uses
format macro constants with no space after the preceding string literal
is invalid.
Also avoid using code that will be seen by a C++11 compiler as an
invalid use of a variably-modified type (a variable-length array or
type derived from it).