Scripts/Ulduar/Algalon: fixed achievement "He Feeds On Your Tears"

Ref #6157

(cherry picked from commit d68e3325d5)
This commit is contained in:
joschiwald
2015-09-20 15:57:21 +02:00
committed by Shauren
parent c5d36a3183
commit 3a4f33d007

View File

@@ -242,7 +242,7 @@ class ActivateLivingConstellation : public BasicEvent
{
}
bool Execute(uint64 execTime, uint32 /*diff*/)
bool Execute(uint64 execTime, uint32 /*diff*/) override
{
if (!_instance || _instance->GetBossState(BOSS_ALGALON) != IN_PROGRESS)
return true; // delete event
@@ -264,7 +264,7 @@ class CosmicSmashDamageEvent : public BasicEvent
{
}
bool Execute(uint64 /*execTime*/, uint32 /*diff*/)
bool Execute(uint64 /*execTime*/, uint32 /*diff*/) override
{
_caster->CastSpell((Unit*)NULL, SPELL_COSMIC_SMASH_TRIGGERED, TRIGGERED_FULL_MASK);
return true;
@@ -281,7 +281,7 @@ class SummonUnleashedDarkMatter : public BasicEvent
{
}
bool Execute(uint64 execTime, uint32 /*diff*/)
bool Execute(uint64 execTime, uint32 /*diff*/) override
{
_caster->CastSpell((Unit*)NULL, SPELL_SUMMON_UNLEASHED_DARK_MATTER, TRIGGERED_FULL_MASK);
_caster->m_Events.AddEvent(this, execTime + 30000);
@@ -322,7 +322,7 @@ class boss_algalon_the_observer : public CreatureScript
void KilledUnit(Unit* victim) override
{
if (victim->GetTypeId() == TYPEID_UNIT)
if (victim->GetTypeId() == TYPEID_PLAYER)
{
_fedOnTears = true;
if (!_hasYelled)