Implement ACHIEVEMENT_CRITERIA_DATA_INSTANCE_SCRIPT. by VladimirMangos

--HG--
branch : trunk
This commit is contained in:
n0n4m3
2009-12-25 15:53:37 +01:00
parent 7deb87502e
commit 07e2920b60
4 changed files with 41 additions and 4 deletions

View File

@@ -25,6 +25,7 @@
#include "GameObject.h"
#include "Creature.h"
#include "CreatureAI.h"
#include "Log.h"
void InstanceData::SaveToDB()
{
@@ -331,3 +332,10 @@ void InstanceData::DoRemoveAurasDueToSpellOnPlayers(uint32 spell)
if (Player* pPlayer = i->getSource())
pPlayer->RemoveAurasDueToSpell(spell);
}
bool InstanceData::CheckAchievementCriteriaMeet( uint32 criteria_id, Player const* /*source*/, Unit const* /*target*/ /*= NULL*/, uint32 /*miscvalue1*/ /*= 0*/ )
{
sLog.outError("Achievement system call InstanceData::CheckAchievementCriteriaMeet but instance script for map %u not have implementation for achievement criteria %u",
instance->GetId(),criteria_id);
return false;
}