Scripts/Icecrown Citadel: Added Lady Deathwhisper script, huge thanks to wowgargamel for script parts, timers and sniffs

Core/Scripts: Added GetPhaseMask() method to EventMap

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-08-21 11:09:58 +02:00
parent 50789b0461
commit d7814e88d8
13 changed files with 925 additions and 13 deletions
+2
View File
@@ -325,6 +325,8 @@ class EventMap : private std::map<uint32, uint32>
void Update(uint32 time) { m_time += time; }
uint32 GetPhaseMask() const { return (m_phase >> 24) & 0xFF; }
void SetPhase(uint32 phase)
{
if (phase && phase < 9)
@@ -418,6 +418,7 @@ void AddSC_halls_of_reflection();
void AddSC_boss_falric();
void AddSC_boss_marwyn();
void AddSC_boss_lord_marrowgar(); // Icecrown Citadel
void AddSC_boss_lady_deathwhisper();
void AddSC_instance_icecrown_citadel();
void AddSC_dalaran();
@@ -1082,6 +1083,7 @@ void AddNorthrendScripts()
AddSC_boss_falric();
AddSC_boss_marwyn();
AddSC_boss_lord_marrowgar(); // Icecrown Citadel
AddSC_boss_lady_deathwhisper();
AddSC_instance_icecrown_citadel();
AddSC_dalaran();
@@ -2224,6 +2224,14 @@ void AuraEffect::TriggerSpell(Unit * target, Unit * caster) const
case 39857: triggerSpellId = 39856; break;
// Personalized Weather
case 46736: triggerSpellId = 46737; break;
// Mana Barrier - Lady Deathwhisper
case 70842:
{
int32 missingHealth = caster->GetMaxHealth() - caster->GetHealth();
caster->ModifyHealth(missingHealth);
caster->ModifyPower(POWER_MANA, -missingHealth);
return;
}
}
break;
}