TrinityCore icon indicating copy to clipboard operation
TrinityCore copied to clipboard

[Rake, Druid, Feral] Rake initial damege

Open click opened this issue 15 years ago • 16 comments

Patch 2.0.1 (2006-12-05): The initial damage is no longer mitigated by armor.

Always on trinity core, first damege from Rake was not considered a bleed damege.

Rake the target for [AP / 100 + X] bleed damage and an additional [Y + AP * 0.18] damage over 9 sec. Awards 1 combo point.

click avatar May 16 '11 22:05 click

Author: sarjuuk


diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp
index 2c5f8b3..4088fb5 100755
--- a/src/server/game/Spells/SpellMgr.cpp
+++ b/src/server/game/Spells/SpellMgr.cpp
@@ -4162,6 +4162,9 @@ void SpellMgr::LoadSpellCustomAttr()
                 // Roar
                 else if (spellInfo->SpellFamilyFlags[0] & 0x8)
                     mSpellCustomAttr[i] |= SPELL_ATTR0_CU_AURA_CC;
+                // Rake
+                else if (spellInfo->SpellFamilyFlags[0] & 0x1000 && spellInfo->SpellIconID == 494)
+                    spellInfo->Mechanic = MECHANIC_BLEED;
                 else
                     break;
                 count++;

click avatar May 16 '11 22:05 click

Author: domino Will this be implemented?

click avatar May 16 '11 22:05 click

Author: tobmaps this fix doesn't work for me, still not ignores armor with patch

click avatar May 16 '11 22:05 click

Author: domino Sadly... I belive that this is the only spell with 2 tips of bleed, one on impact and one as dot.

click avatar May 16 '11 22:05 click

Author: tobmaps i think i know why patch isn't working xD The patch wrong, EFFECT1 of this spell already has right mechanic (MECHANIC_BLEED), but the problem is in trinitycore code.

file Unit.cpp, function Unit::IsDamageReducedByArmor


        // bleeding effects are not reduced by armor
        if (effIndex != MAX_SPELL_EFFECTS && spellInfo->EffectApplyAuraName[effIndex] == SPELL_AURA_PERIODIC_DAMAGE)
            if (GetSpellMechanicMask(spellInfo, effIndex) & (1<<MECHANIC_BLEED))
                return false;

it can happen because this code checks per-effect and our "initial damage" effect doesn't uses SPELL_AURA_PERIODIC_DAMAGE, so that's why this check is fails.

soooooo... i have two ideas The first (not tested yet)


diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp
index 09f5a59..ce1f67a 100755
--- a/src/server/game/Entities/Unit/Unit.cpp
+++ b/src/server/game/Entities/Unit/Unit.cpp
@@ -1492,9 +1492,8 @@ bool Unit::IsDamageReducedByArmor(SpellSchoolMask schoolMask, SpellEntry const *
             return false;

         // bleeding effects are not reduced by armor
-        if (effIndex != MAX_SPELL_EFFECTS && spellInfo->EffectApplyAuraName[effIndex] == SPELL_AURA_PERIODIC_DAMAGE)
-            if (GetSpellMechanicMask(spellInfo, effIndex) & (1<<MECHANIC_BLEED))
-                return false;
+        if (effIndex != MAX_SPELL_EFFECTS && GetSpellMechanicMask(spellInfo, effIndex) & (1<<MECHANIC_BLEED))
+            return false;
     }
     return true;
 }

and the second (that looks like more as a hack, but it works)


diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp
index 00a6249..6dd0a76 100755
--- a/src/server/game/Spells/SpellMgr.cpp
+++ b/src/server/game/Spells/SpellMgr.cpp
@@ -4130,6 +4130,9 @@ void SpellMgr::LoadSpellCustomAttr()
                 // Roar
                 else if (spellInfo->SpellFamilyFlags[0] & 0x8)
                     mSpellCustomAttr[i] |= SPELL_ATTR0_CU_AURA_CC;
+                // Rake
+                else if (spellInfo->SpellFamilyFlags[0] & 0x1000 && spellInfo->SpellIconID == 494)
+                    mSpellCustomAttr[i] |= SPELL_ATTR0_CU_IGNORE_ARMOR;
                 else
                     break;
                 count++;

i hope v1 will work, because there is a many spells that has MECHANIC_BLEED per-effect but auras of these effects aren't SPELL_AURA_PERIODIC_DAMAGE

click avatar May 16 '11 22:05 click

Author: domino And it's tested?...

click avatar May 16 '11 22:05 click

Author: tobmaps second one tested and works, but i didn't tested first - it's just an idea

click avatar May 16 '11 22:05 click

Author: domino Try to test and the firt patch.

"and the second (that looks like more as a hack, but it works)" - what you mean by "hack"? ...

click avatar May 16 '11 22:05 click

Author: tobmaps because as i think it isn't a right solution. it more looks like a workaround, just call it "workaround" if you doesn't like "hack" word :)

click avatar May 16 '11 22:05 click

Author: domino It is not an workaround if it's working. Workaround it's to make a bleed as "spell" to ignore armor, as I can see. Anyway, please test and first patch.

click avatar May 16 '11 22:05 click

Confirmed on hash : f2000f3

Katherina avatar Oct 27 '11 21:10 Katherina

Rake is affected by armor yet. There are some news?

texen avatar Apr 02 '12 10:04 texen

diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp
index a35a99b..a2b7656 100755
--- a/src/server/game/Spells/SpellMgr.cpp
+++ b/src/server/game/Spells/SpellMgr.cpp
@@ -2958,6 +2958,9 @@ void SpellMgr::LoadSpellCustomAttr()
                 // Roar
                 if (spellInfo->SpellFamilyFlags[0] & 0x8)
                     spellInfo->AttributesCu |= SPELL_ATTR0_CU_AURA_CC;
+                // Rake
+                else if (spellInfo->SpellFamilyFlags[0] & 0x1000 && spellInfo->SpellIconID == 494)
+                    mSpellCustomAttr[i] |= SPELL_ATTR0_CU_IGNORE_ARMOR;
                 break;
             default:
                 break;

this fix works

Amit86 avatar Apr 11 '12 12:04 Amit86

Thank you very much. I wish it could be added to the core.

texen avatar Apr 11 '12 12:04 texen


diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp
index 09f5a59..ce1f67a 100755
--- a/src/server/game/Entities/Unit/Unit.cpp
+++ b/src/server/game/Entities/Unit/Unit.cpp
@@ -1492,9 +1492,8 @@ bool Unit::IsDamageReducedByArmor(SpellSchoolMask schoolMask, SpellEntry const *
             return false;

         // bleeding effects are not reduced by armor
-        if (effIndex != MAX_SPELL_EFFECTS && spellInfo->EffectApplyAuraName[effIndex] == SPELL_AURA_PERIODIC_DAMAGE)
-            if (GetSpellMechanicMask(spellInfo, effIndex) & (1<<MECHANIC_BLEED))
-                return false;
+        if (effIndex != MAX_SPELL_EFFECTS && GetSpellMechanicMask(spellInfo, effIndex) & (1<<MECHANIC_BLEED))
+            return false;
     }
     return true;
 }

please test this? :D

Star-lion avatar Apr 23 '12 17:04 Star-lion

Confirming bug on Core revision: Trinity Core 0b98656b2878+ Database revision: TDB 335.11.48

syphor64 avatar Aug 16 '12 20:08 syphor64