31.05.2010, 02:47
|
#2
|
Пользователь
Регистрация: 11.03.2010
Адрес: Спб
Сообщений: 35
Сказал(а) спасибо: 5
Поблагодарили 10 раз(а) в 8 сообщениях
|
поскольку петы умирают не от старости, а от полученного урона, как вариант:
Код:
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ @@ uint32 Unit::DealDamage(Unit *pVictim, uint32 damage, CleanDamage const* cleanDa
((Creature*)pOwner)->AI()->SummonedCreatureJustDied(cVictim);
}
+ //Heart of the Phoenix
+ if(cVictim->isPet())
+ if(Pet *pet = ((Pet*)cVictim))
+ if(pet->getPetType() == HUNTER_PET && pet->HasSpell(55709) && !pet->HasAura(55711))
+ pet->CastSpell(pet, 55709, true);
+
// Dungeon specific stuff, only applies to players killing creatures
if(cVictim->GetInstanceId())
{
--
и добавить в Spell::EffectScriptEffect
+ int32 basePoints = 100;
+ owner->CastCustomSpell(this, 54114, &basePoints, 0, 0, true);
+ unitTarget->CastSpell(unitTarget, 55711, true);
ID - 54114 Сердце феникса
Effect 0: Id 109 (SPELL_EFFECT_SUMMON_DEAD_PET)
BasePoints = 15
Description: Оживляет вашего с полным запасом здоровья.
|
|
|