Jump to content

[Fix][mangos 0.12] DynObjScale of some Spells


Guest Hundekuchen

Recommended Posts

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

Fix the size of some spells:

http://www.wowhead.com/spell=30129

http://www.wowhead.com/spell=37091

http://www.wowhead.com/spell=48819 and other Ranks

For which repository revision was the patch created?

8569 mangos 0.12

Is there a thread in the bug report section or at lighthouse?

not in this case

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

Me and Bugfix

diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index bc86747..46ff168 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -2603,6 +2613,28 @@ void Spell::EffectPersistentAA(SpellEffectIndex eff_idx)
    dynObj->SetUInt32Value(OBJECT_FIELD_TYPE, 65);
    dynObj->SetUInt32Value(GAMEOBJECT_DISPLAYID, 368003);
    dynObj->SetUInt32Value(DYNAMICOBJECT_BYTES, 0x01eeeeee);
+
+    switch (m_spellInfo->SpellFamilyName)
+    {
+        case SPELLFAMILY_GENERIC:
+            switch(m_spellInfo->Id)
+            {
+                    case 30129: 
+                        dynObj->SetFloatValue(OBJECT_FIELD_SCALE_X, 2.8f); 
+                        break;
+                    case 37091: 
+                        dynObj->SetFloatValue(OBJECT_FIELD_SCALE_X, 0.1f); 
+                        break;
+            }
+            break;
+        case SPELLFAMILY_PALADIN:
+            if (m_spellInfo->SpellFamilyFlags & UI64LIT(0x0000000000000020))
+                dynObj->SetFloatValue(OBJECT_FIELD_SCALE_X, 2);
+            break;
+    }
    m_caster->AddDynObject(dynObj);
    m_caster->GetMap()->Add(dynObj);
}

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