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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user