[9388] Implement max cast chain length for triggered spells.
commit658e6aaed3283e819a6cc95f48f7899e7f085fb3
authorVladimirMangos <vladimir@getmangos.com>
Mon, 15 Feb 2010 09:10:08 +0000 (15 12:10 +0300)
committerVladimirMangos <vladimir@getmangos.com>
Mon, 15 Feb 2010 09:19:27 +0000 (15 12:19 +0300)
tree385efbb93a3e5471f28a53dfdd39cea94a26a491
parentac1ce74a0055a85b524ca64def166ddeeabf0421
[9388] Implement max cast chain length for triggered spells.

* New config option MaxSpellCastsInChain ( 0 is disabled old way work )
* Check added for prevent stack overflow crashes in case infinity triggered casts sequences
  with more useful error output instead crash.
* Default config steeing in 10 casts expected to allow all possible in game proper cast chains.
src/game/Spell.cpp
src/game/Unit.cpp
src/game/Unit.h
src/game/World.cpp
src/game/World.h
src/mangosd/mangosd.conf.dist.in
src/shared/revision_nr.h