google-code-export / oregoncore

Automatically exported from code.google.com/p/oregoncore
GNU General Public License v2.0
1 stars 0 forks source link

Totem's Not work #155

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
By pdx15 (22 May 2010 - automatically ported issue):

http://www.wowhead.com/spell=41040 and http://www.wowhead.com/spell=34230
:)

Original issue reported on code.google.com by stfxm...@gmail.com on 30 Dec 2010 at 3:46

GoogleCodeExporter commented 9 years ago
By pdx15:
and Librams http://www.wowhead.com/item=28592 and 
http://www.wowhead.com/item=25644 and http://www.wowhead.com/item=28296 and 
http://www.wowhead.com/item=23006 And all similar - do not work.
Here a fix for http://www.wowhead.com/item=28592 for mangos
Who will make a great feat? =))
#!@@ -8592,6 +8598,15 @@ uint32 Unit::SpellHealingBonus(SpellEntry const 
*spellProto, uint32 healamount,                   else if 
((spellProto->SpellFamilyFlags & UI64LIT(0x0000000080000000)) && 
(*i)->GetEffIndex() == 0)                       AdvertisedBenefit += 
(*i)->GetModifier()->m_amount;               }  +            else 
if((*i)->GetSpellProto()->Id == 38320)  // kia fix Libram of Souls Redeemed  +   
         {  +                // Flash of Light  +                if 
((spellProto->SpellFamilyFlags & UI64LIT(0x0000000040000000)) && 
(*i)->GetEffIndex() == 0)  +                    AdvertisedBenefit += 
(*i)->GetModifier()->m_amount/2;  +                // Holy Light  +             
   else if ((spellProto->SpellFamilyFlags & UI64LIT(0x0000000080000000)) && 
(*i)->GetEffIndex() == 0)  +                    AdvertisedBenefit += 
(*i)->GetModifier()->m_amount;  +            }           }       }

Original comment by stfxm...@gmail.com on 30 Dec 2010 at 3:46

GoogleCodeExporter commented 9 years ago
By pdx15:
omg
correct
@@ -8592,6 +8598,15 @@ uint32 Unit::SpellHealingBonus(SpellEntry const 
*spellProto, uint32 healamount,

                 else if ((spellProto->SpellFamilyFlags & UI64LIT(0x0000000080000000)) && (*i)->GetEffIndex() == 0)

                     AdvertisedBenefit += (*i)->GetModifier()->m_amount;

             }

+            else if((*i)->GetSpellProto()->Id == 38320)    // kia fix Libram of 
Souls Redeemed

+            {

+                // Flash of Light

+                if ((spellProto->SpellFamilyFlags & 
UI64LIT(0x0000000040000000)) && (*i)->GetEffIndex() == 0)

+                    AdvertisedBenefit += (*i)->GetModifier()->m_amount/2;

+                // Holy Light

+                else if ((spellProto->SpellFamilyFlags & 
UI64LIT(0x0000000080000000)) && (*i)->GetEffIndex() == 0)

+                    AdvertisedBenefit += (*i)->GetModifier()->m_amount;

+            }

         }

     }

Original comment by stfxm...@gmail.com on 30 Dec 2010 at 3:46

GoogleCodeExporter commented 9 years ago

Original comment by stfxm...@gmail.com on 30 Dec 2010 at 5:50