Core/Achievements: Implemented ACHIEVEMENT_CRITERIA_TYPE_GET_KILLING_BLOWS

This commit is contained in:
Shauren committed 2011-05-14 12:26:49 +02:00
1 parent b71b2896b6
commit 24a8cc24da
7 files changed
+198 -91

No files matched your search

@@ -1112,6 +1112,20 @@ public:
};
};
class achievement_denyin_the_scion : public AchievementCriteriaScript
{
public:
achievement_denyin_the_scion() : AchievementCriteriaScript("achievement_denyin_the_scion") { }
bool OnCheck(Player* source, Unit* /*target*/)
{
if (Unit* disk = source->GetVehicleBase())
if (disk->GetEntry() == NPC_HOVER_DISK_CASTER || disk->GetEntry() == NPC_HOVER_DISK_MELEE)
return true;
return false;
}
};
void AddSC_boss_malygos()
{
new boss_malygos();
@@ -1123,4 +1137,5 @@ void AddSC_boss_malygos()
new spell_malygos_vortex_dummy();
new spell_malygos_vortex_visual();
new npc_alexstrasza_eoe();
new achievement_denyin_the_scion();
}