[DiscordArchive] I was just looking at a bunch of stuff in the core and I'm struggling to understand this:
[DiscordArchive] I was just looking at a bunch of stuff in the core and I'm struggling to understand this:
Archived author: Linguster • Posted: 2022-10-21T19:35:28.755000+00:00
Original source
I was just looking at a bunch of stuff in the core and I'm struggling to understand this:
Eviscerate rank 2 has the following formular in Spell.dbc:
```
Finishing move that causes damage per combo point:
1 point : ${$m1+(($b1*1)+$AP*0.03)*$<mult>}-${$M1+(($b1*1)+$AP*0.07)*$<mult>} damage
2 points: ${$m1+(($b1*2)+$AP*0.06)*$<mult>}-${$M1+(($b1*2)+$AP*0.14)*$<mult>} damage
3 points: ${$m1+(($b1*3)+$AP*0.09)*$<mult>}-${$M1+(($b1*3)+$AP*0.21)*$<mult>} damage
4 points: ${$m1+(($b1*4)+$AP*0.12)*$<mult>}-${$M1+(($b1*4)+$AP*0.28)*$<mult>} damage
5 points: ${$m1+(($b1*5)+$AP*0.15)*$<mult>}-${$M1+(($b1*5)+$AP*0.35)*$<mult>} damage
```
In the core we have the following:
```
// Eviscerate
else if (m_spellInfo->SpellFamilyFlags[0] & 0x00020000)
{
if (m_caster->GetTypeId() == TYPEID_PLAYER)
{
if (uint32 combo = m_caster->ToPlayer()->GetComboPoints())
{
float ap = m_caster->GetTotalAttackPowerValue(BASE_ATTACK);
damage += int32(ap * combo * 0.07f);
// Eviscerate and Envenom Bonus Damage (item set effect)
if (m_caster->HasAura(37169))
damage += combo * 40;
}
}
}
break;
```
Is there something that doesn't add up or can someone explain me the logic as to why what we have in the core is correct?
Archived author: Linguster • Posted: 2022-10-21T19:50:36.881000+00:00
Original source
Shouldn't line 9 be:
`damage += irand(int32(ap * combo * 0.03f), int32(ap * combo * 0.07f));`
Archived author: conFIGured • Posted: 2022-10-21T19:59:08.133000+00:00
Original source
Do guardian pet spells all have to be core coded forced? I cannot get them to cast via spellid1
Archived author: conFIGured • Posted: 2022-10-21T20:09:17.193000+00:00
Original source
i dont have no autocast(ai) flagged in the spell either