mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[10014] Revert "[10013] Implement CONDITION_QUESTTARGET"
This reverts commit 4e460746c0947f6cfc1f1150a8eb90257819eae2.
This commit is contained in:
parent
59367bc19f
commit
5e526ef0d9
5 changed files with 2 additions and 71 deletions
|
|
@ -7409,10 +7409,6 @@ bool PlayerCondition::Meets(Player const * player) const
|
|||
return data->CheckConditionCriteriaMeet(player, value1, value2);
|
||||
return false;
|
||||
}
|
||||
case CONDITION_QUESTTARGET:
|
||||
{
|
||||
return player->HasQuestObjectiveForTarget(int32(value1), !bool(value2));
|
||||
}
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
|
@ -7637,31 +7633,6 @@ bool PlayerCondition::IsValid(ConditionType condition, uint32 value1, uint32 val
|
|||
|
||||
break;
|
||||
}
|
||||
case CONDITION_QUESTTARGET:
|
||||
{
|
||||
if (int32(value1) > 0)
|
||||
{
|
||||
if (!sObjectMgr.GetCreatureTemplate(value1))
|
||||
{
|
||||
sLog.outErrorDb("Quest target condition has not existed creature entry %u as first arg, skipped", value1);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else if (int32(value1) < 0)
|
||||
{
|
||||
if (!sObjectMgr.GetGameObjectInfo(-int32(value1)))
|
||||
{
|
||||
sLog.outErrorDb("Quest target condition has not existed gameobject entry %u as first arg, skipped", -int32(value1));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
sLog.outErrorDb("Quest target condition has not existed entry 0 as first arg, skipped");
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case CONDITION_NONE:
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue