*Script for Ebon gargoyle - original patch by thenecromancer.
--HG-- branch : trunk
This commit is contained in:
@@ -940,6 +940,16 @@ bool Guardian::InitStatsForLevel(uint32 petlevel)
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 27829: // Ebon Gargoyle
|
||||
{
|
||||
SetBonusDamage( int32(m_owner->GetTotalAttackPowerValue(BASE_ATTACK) * 0.4f));
|
||||
if(!pInfo)
|
||||
{
|
||||
SetCreateMana(28 + 10*petlevel);
|
||||
SetCreateHealth(28 + 30*petlevel);
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
if(!pInfo)
|
||||
|
||||
@@ -1233,6 +1233,11 @@ void Aura::HandleAuraSpecificMods(bool apply)
|
||||
return;
|
||||
m_target->CastSpell(m_target, 32612, true, NULL, GetPartAura(1));
|
||||
}
|
||||
// Summon Gargoyle
|
||||
else if (m_spellProto->Id == 50514)
|
||||
{
|
||||
m_target->CastSpell(m_target, GetPartAura(0)->GetAmount(), true, NULL, GetPartAura(0));
|
||||
}
|
||||
// Curse of Doom
|
||||
else if(m_spellProto->SpellFamilyName==SPELLFAMILY_WARLOCK && m_spellProto->SpellFamilyFlags[1] & 0x02)
|
||||
{
|
||||
|
||||
@@ -1909,20 +1909,12 @@ void Spell::EffectDummy(uint32 i)
|
||||
{
|
||||
// No power, dismiss Gargoyle
|
||||
if (m_caster->GetPower(POWER_RUNIC_POWER)<30)
|
||||
m_caster->CastSpell((Unit*)NULL,50515,true);
|
||||
m_caster->RemoveAurasDueToSpell(50514, m_caster->GetGUID());
|
||||
else
|
||||
m_caster->ModifyPower(POWER_RUNIC_POWER,-30);
|
||||
|
||||
return;
|
||||
}
|
||||
// Dismiss Gargoyle
|
||||
else if (m_spellInfo->Id == 50515)
|
||||
{
|
||||
// FIXME: gargoyle should fly away
|
||||
unitTarget->setDeathState(JUST_DIED);
|
||||
m_caster->RemoveAurasDueToSpell(50514);
|
||||
return;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user