Core/Achievements: Fix The Sickly Gazelle

Closes #2154
This commit is contained in:
horn
2011-07-01 19:32:41 +03:00
committed by Shocker
parent 08be81caca
commit 676967c9ac
4 changed files with 25 additions and 0 deletions

View File

@@ -1844,6 +1844,7 @@ INSERT INTO `achievement_criteria_data` (`criteria_id`,`type`,`value1`,`value2`,
(1239,11,0,0, 'achievement_bg_control_all_nodes'),
(5605,11,0,0, 'achievement_save_the_day'),
(5606,11,0,0, 'achievement_save_the_day'),
(6800,11,0,0, 'achievement_sickly_gazelle'),
(12993,11,0,0, 'achievement_doesnt_go_to_eleven'),
(12778,11,0,0, 'achievement_ive_gone_and_made_a_mess'),
(13036,11,0,0, 'achievement_ive_gone_and_made_a_mess'),

View File

@@ -0,0 +1,4 @@
DELETE FROM `achievement_criteria_data` WHERE `criteria_id` = 6800;
INSERT INTO `achievement_criteria_data` (`criteria_id`, `type`, `value1`, `value2`, `ScriptName`) VALUES
(6800, 6, 3057, 0, ''),
(6800, 11, 0, 0, 'achievement_sickly_gazelle');

View File

@@ -0,0 +1 @@
DELETE FROM `disables` WHERE `sourceType` = 4 AND `entry` = 6800;

View File

@@ -188,6 +188,24 @@ class achievement_arena_kills : public AchievementCriteriaScript
uint8 const _arenaType;
};
class achievement_sickly_gazelle : public AchievementCriteriaScript
{
public:
achievement_sickly_gazelle() : AchievementCriteriaScript("achievement_sickly_gazelle") { }
bool OnCheck(Player* /*source*/, Unit* target)
{
if (!target)
return false;
if (Player* victim = target->ToPlayer())
if (victim->IsMounted())
return true;
return false;
}
};
void AddSC_achievement_scripts()
{
new achievement_storm_glory();
@@ -198,6 +216,7 @@ void AddSC_achievement_scripts()
new achievement_bg_ic_glaive_grave();
new achievement_bg_ic_mowed_down();
new achievement_bg_sa_artillery();
new achievement_sickly_gazelle();
new achievement_arena_kills("achievement_arena_2v2_kills", ARENA_TYPE_2v2);
new achievement_arena_kills("achievement_arena_3v3_kills", ARENA_TYPE_3v3);
new achievement_arena_kills("achievement_arena_5v5_kills", ARENA_TYPE_5v5);