diff options
| author | Subv <s.v.h21@hotmail.com> | 2012-02-11 10:49:28 -0500 |
|---|---|---|
| committer | Subv <s.v.h21@hotmail.com> | 2012-02-11 10:49:28 -0500 |
| commit | c5e2e189de78c419ba1063ba025e5efe69aabd06 (patch) | |
| tree | ae72f32a8ee24942a470920a1daaa4070620d14d /src/server/game/Conditions | |
| parent | 784d58c02370ca69764c54a1fdf438ca59e4917a (diff) | |
Core/Conditions: Allow to set SAI conditions to both the invoker and the object using ConditionTarget column.
ConditionTarget 0 = invoker
ConditionTarget 1 = object
Signed-off-by: Subv <s.v.h21@hotmail.com>
Diffstat (limited to 'src/server/game/Conditions')
| -rwxr-xr-x | src/server/game/Conditions/ConditionMgr.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/game/Conditions/ConditionMgr.cpp b/src/server/game/Conditions/ConditionMgr.cpp index 0e8e999bcac..14f782683b3 100755 --- a/src/server/game/Conditions/ConditionMgr.cpp +++ b/src/server/game/Conditions/ConditionMgr.cpp @@ -36,7 +36,7 @@ bool Condition::Meets(ConditionSourceInfo& sourceInfo) // object not present, return false if (!object) { - sLog->outDebug(LOG_FILTER_CONDITIONSYS, "Condition object not found"); + sLog->outDebug(LOG_FILTER_CONDITIONSYS, "Condition object not found for condition (Entry: %u Type: %u Group: %u)", mSourceEntry, mSourceType, mSourceGroup); return false; } bool condMeets = false; @@ -334,6 +334,8 @@ uint32 Condition::GetMaxAvailableConditionTargets() { case CONDITION_SOURCE_TYPE_SPELL: return 2; + case CONDITION_SOURCE_TYPE_SMART_EVENT: + return 2; default: return 1; } |
