mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-13 03:32:28 -04:00
Core/Conditions: Allow CONDITION_NONE to be used without a script if NegativeCondition is 1
This commit is contained in:
3
sql/updates/world/master/2026_03_09_00_world.sql
Normal file
3
sql/updates/world/master/2026_03_09_00_world.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=34 AND `SourceEntry`=139903;
|
||||
INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceEntry`,`NegativeCondition`,`Comment`) VALUES
|
||||
(34,139903,1,'PlayerCondition 139903 - BLOCK MISSING');
|
||||
@@ -2151,9 +2151,9 @@ bool ConditionMgr::isConditionTypeValid(Condition* cond) const
|
||||
{
|
||||
case CONDITION_NONE:
|
||||
{
|
||||
if (!cond->ScriptId)
|
||||
if (!cond->NegativeCondition && !cond->ScriptId)
|
||||
{
|
||||
TC_LOG_ERROR("sql.sql", "{} must have a `ScriptName` in `condition` table, ignoring.", *cond);
|
||||
TC_LOG_ERROR("sql.sql", "{} must have `NegativeCondition` or `ScriptName` in `condition` table, ignoring.", *cond);
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user