Script HoR instance. 1st part.
Fixes issue #1311. - Intro event. - 10 waves including Falric and Marwyn. - Script based on proposal of Synric on trinitycore forum (submitted by Skarabex on GC). --HG-- branch : trunk
This commit is contained in:
+20
-3
@@ -1089,9 +1089,26 @@ void Aura::HandleAuraSpecificMods(AuraApplication const * aurApp, Unit * caster,
|
||||
switch(GetSpellProto()->SpellFamilyName)
|
||||
{
|
||||
case SPELLFAMILY_GENERIC:
|
||||
// Remove the immunity shield marker on Avenging Wrath removal if Forbearance is not present
|
||||
if (GetId() == 61987 && target->HasAura(61988) && !target->HasAura(25771))
|
||||
target->RemoveAura(61988);
|
||||
switch(GetId())
|
||||
{
|
||||
case 61987: // Avenging Wrath
|
||||
// Remove the immunity shield marker on Avenging Wrath removal if Forbearance is not present
|
||||
if (target->HasAura(61988) && !target->HasAura(25771))
|
||||
target->RemoveAura(61988);
|
||||
break;
|
||||
case 72368: // Shared Suffering
|
||||
case 72369:
|
||||
if (caster)
|
||||
{
|
||||
if (AuraEffect* aurEff = GetEffect(0))
|
||||
{
|
||||
int32 remainingDamage = aurEff->GetAmount() * (aurEff->GetTotalTicks() - aurEff->GetTickNumber());
|
||||
if (remainingDamage > 0)
|
||||
caster->CastCustomSpell(caster, 72373, NULL, &remainingDamage, NULL, true);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case SPELLFAMILY_MAGE:
|
||||
switch(GetId())
|
||||
|
||||
Reference in New Issue
Block a user