*Prevent to kill spirit of redemption - by Sorken
--HG-- branch : trunk
This commit is contained in:
@@ -339,14 +339,6 @@ void Spell::SpellDamageSchoolDmg(uint32 effect_idx)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 43648: //Electrical Storm
|
|
||||||
{
|
|
||||||
if(unitTarget && unitTarget->HasAura(44007, 0)) // Immune Aura
|
|
||||||
{
|
|
||||||
damage = 0;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
// percent from health with min
|
// percent from health with min
|
||||||
case 25599: // Thundercrash
|
case 25599: // Thundercrash
|
||||||
{
|
{
|
||||||
@@ -1234,7 +1226,7 @@ void Spell::EffectDummy(uint32 i)
|
|||||||
|
|
||||||
m_caster->CastSpell(m_caster, 30452, true, NULL);
|
m_caster->CastSpell(m_caster, 30452, true, NULL);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//All IconID Check in there
|
//All IconID Check in there
|
||||||
|
|||||||
@@ -12709,6 +12709,7 @@ void Unit::Kill(Unit *pVictim, bool durabilityLoss)
|
|||||||
|
|
||||||
// FORM_SPIRITOFREDEMPTION and related auras
|
// FORM_SPIRITOFREDEMPTION and related auras
|
||||||
pVictim->CastSpell(pVictim,27827,true,NULL,*itr);
|
pVictim->CastSpell(pVictim,27827,true,NULL,*itr);
|
||||||
|
pVictim->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); // should not be attackable
|
||||||
SpiritOfRedemption = true;
|
SpiritOfRedemption = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -12719,6 +12720,7 @@ void Unit::Kill(Unit *pVictim, bool durabilityLoss)
|
|||||||
{
|
{
|
||||||
DEBUG_LOG("SET JUST_DIED");
|
DEBUG_LOG("SET JUST_DIED");
|
||||||
pVictim->setDeathState(JUST_DIED);
|
pVictim->setDeathState(JUST_DIED);
|
||||||
|
pVictim->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); // reactive attackable flag
|
||||||
}
|
}
|
||||||
|
|
||||||
// 10% durability loss on death
|
// 10% durability loss on death
|
||||||
|
|||||||
Reference in New Issue
Block a user