diff options
author | ariel- <ariel.silva305@gmail.com> | 2015-04-27 01:47:03 -0300 |
---|---|---|
committer | DDuarte <dnpd.dd@gmail.com> | 2015-06-26 03:27:29 +0100 |
commit | 7ee455df59e2912725c49f36da76349377aa768a (patch) | |
tree | 42285c19d5f474ae6058825977d5ae032f3c7b7d /src/server/game/Conditions/ConditionMgr.cpp | |
parent | d7258abb0e4d9ce89ca06ed0fc34d310a81a3cde (diff) |
Spell logging corrections
(cherry picked from commit fe83ecb2cfe610e608092d4a480339559d1e8f29)
Conflicts:
src/server/game/Conditions/ConditionMgr.cpp
Diffstat (limited to 'src/server/game/Conditions/ConditionMgr.cpp')
-rw-r--r-- | src/server/game/Conditions/ConditionMgr.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/server/game/Conditions/ConditionMgr.cpp b/src/server/game/Conditions/ConditionMgr.cpp index babbbbce153..22decfaf883 100644 --- a/src/server/game/Conditions/ConditionMgr.cpp +++ b/src/server/game/Conditions/ConditionMgr.cpp @@ -1565,6 +1565,9 @@ bool ConditionMgr::isSourceTypeValid(Condition* cond) if (!effect) continue; + if (effect->ChainTarget > 0) + continue; + switch (effect->TargetA.GetSelectionCategory()) { case TARGET_SELECT_CATEGORY_NEARBY: @@ -1585,7 +1588,7 @@ bool ConditionMgr::isSourceTypeValid(Condition* cond) break; } - TC_LOG_ERROR("sql.sql", "SourceEntry %u SourceGroup %u in `condition` table - spell %u does not have implicit targets of types: _AREA_, _CONE_, _NEARBY_ for effect %u, SourceGroup needs correction, ignoring.", cond->SourceEntry, origGroup, cond->SourceEntry, uint32(i)); + TC_LOG_ERROR("sql.sql", "SourceEntry %u SourceGroup %u in `condition` table - spell %u does not have implicit targets of types: _AREA_, _CONE_, _NEARBY_, __CHAIN__ for effect %u, SourceGroup needs correction, ignoring.", cond->SourceEntry, origGroup, cond->SourceEntry, uint32(i)); cond->SourceGroup &= ~(1 << i); } // all effects were removed, no need to add the condition at all |