diff options
| author | Machiavelli <none@none> | 2009-06-09 21:56:56 +0200 |
|---|---|---|
| committer | Machiavelli <none@none> | 2009-06-09 21:56:56 +0200 |
| commit | 1afdfd91066805cac42e4d73fcac78591c139c89 (patch) | |
| tree | fdeb525bd9bd8dd84351dea70e0c8766a04a101d /src/game/SpellEffects.cpp | |
| parent | 41baf8b0d34dba1bd579831fe77bcc785f857f9b (diff) | |
| parent | c5232138f870a8a4e5a59ecb3e0a3228373f58e2 (diff) | |
Merge
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
| -rw-r--r-- | src/game/SpellEffects.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 0c8a4eee292..ae84b6c4ff9 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -3393,10 +3393,8 @@ void Spell::EffectSummonType(uint32 i) vehicle->SetUInt32Value(UNIT_CREATED_BY_SPELL, m_spellInfo->Id); if(damage) - { m_caster->CastSpell(vehicle, damage, true); - m_caster->EnterVehicle(vehicle); - } + m_caster->EnterVehicle(vehicle); break; } } @@ -5135,6 +5133,15 @@ void Spell::EffectScriptEffect(uint32 effIndex) { switch(m_spellInfo->Id) { + // Heart of the Pheonix + case 55709: + { + int pct = 100; + if (unitTarget->GetTypeId()==TYPEID_UNIT && ((Creature*)unitTarget)->isPet()) + if (Unit* owner = ((Creature*)unitTarget)->GetOwner()) + owner->CastCustomSpell(unitTarget, 54114, &pct, NULL, NULL, true); + break; + } // Chimera Shot case 53209: { |
