[Rake, Druid, Feral] Rake initial damege
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.
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++;
Author: domino Will this be implemented?
Author: tobmaps this fix doesn't work for me, still not ignores armor with patch
Author: domino Sadly... I belive that this is the only spell with 2 tips of bleed, one on impact and one as dot.
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
Author: domino And it's tested?...
Author: tobmaps second one tested and works, but i didn't tested first - it's just an idea
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"? ...
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 :)
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.
Confirmed on hash : f2000f3
Rake is affected by armor yet. There are some news?
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
Thank you very much. I wish it could be added to the core.
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
Confirming bug on Core revision: Trinity Core 0b98656b2878+ Database revision: TDB 335.11.48