Jump to content

[Patch] Pets spawned by jewelcrafting trinkets

Guest DaC

Recommended Posts

What bug does the patch fix? What features does the patch add?

Pets summoned by jewelcrafting trinkets should be ooc-pets and not guardians.

For which repository revision was the patch created?

MaNGOS One - latest revision

Who has been writing this patch? Please include either forum user names or email addresses.


The small pets spawned by jewelcrafting items like 35700 should be passiv and not act like guardian pets.

From 9857d04bf835b197e3af2711d20c3ec23f7ca980 Mon Sep 17 00:00:00 2001
From: DaC <[email protected]>
Date: Tue, 21 Jun 2011 22:04:04 +0200
Subject: [PATCH] Jewelcrafting trinkes - Pets should be ooc-pets

src/game/SpellEffects.cpp |    5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index f490c03..a761372 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -3095,7 +3095,10 @@ void Spell::EffectSummonType(SpellEffectIndex eff_idx)
                case UNITNAME_SUMMON_TITLE_PET:
-                    DoSummonGuardian(eff_idx, summon_prop->FactionId);
+                    if (prop_id == 407)
+                        DoSummonCritter(eff_idx, summon_prop->FactionId);
+                    else
+                        DoSummonGuardian(eff_idx, summon_prop->FactionId);

regards, DaC

Link to comment
Share on other sites


  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use