Twin's Valk Removed Hardcoded Healing

This commit is contained in:
Nevan
2011-09-01 03:49:53 +02:00
parent 5df029f88d
commit 98024367e5
2 changed files with 10 additions and 12 deletions
@@ -0,0 +1,10 @@
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 13 AND `ConditionTypeOrReference` = 18 AND `SourceEntry` IN (65875,67303,67304,67305,65876,67306,67307,67308) ;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(13, 0, 65875, 0, 18, 1, 34497, 2, 0, '', 'Twins Pact - Dark'),
(13, 0, 67303, 0, 18, 1, 34497, 2, 0, '', 'Twins Pact - Dark'),
(13, 0, 67304, 0, 18, 1, 34497, 2, 0, '', 'Twins Pact - Dark'),
(13, 0, 67305, 0, 18, 1, 34497, 2, 0, '', 'Twins Pact - Dark'),
(13, 0, 65876, 0, 18, 1, 34496, 2, 0, '', 'Twins Pact - Light'),
(13, 0, 67306, 0, 18, 1, 34496, 2, 0, '', 'Twins Pact - Light'),
(13, 0, 67307, 0, 18, 1, 34496, 2, 0, '', 'Twins Pact - Light'),
(13, 0, 67308, 0, 18, 1, 34496, 2, 0, '', 'Twins Pact - Light');
@@ -251,18 +251,6 @@ struct boss_twin_baseAI : public ScriptedAI
Summons.Despawn(summoned); Summons.Despawn(summoned);
} }
void HealReceived(Unit* healer, uint32& heal)
{
if(healer->GetEntry() == me->GetEntry())
{
if (Creature* pSister = GetSister())
{
heal = uint32(heal/2);
healer->DealHeal(pSister, heal);
}
}
}
void SummonColorballs(uint8 quantity) void SummonColorballs(uint8 quantity)
{ {
float x0 = ToCCommonLoc[1].GetPositionX(), y0 = ToCCommonLoc[1].GetPositionY(), r = 47.0f; float x0 = ToCCommonLoc[1].GetPositionX(), y0 = ToCCommonLoc[1].GetPositionY(), r = 47.0f;