[DiscordArchive] Are you talkable for a bit?
[DiscordArchive] Are you talkable for a bit?
Archived author: syntaxhell • Posted: 2025-03-28T14:02:11.564000+00:00
Original source
Ah okay
Archived author: syntaxhell • Posted: 2025-03-28T14:02:14.483000+00:00
Original source
Will check it out
Archived author: syntaxhell • Posted: 2025-03-28T14:02:15.754000+00:00
Original source
Thank you
Archived author: Alistar • Posted: 2025-03-28T14:03:29.525000+00:00
Original source
at this point it's a regular day for them xd
Archived author: syntaxhell • Posted: 2025-03-28T14:04:47.387000+00:00
Original source
So something like this maybe:
```void CalculateExecuteDamage(SpellEffectInfo const& /*effectInfo*/, Unit const* /*victim*/, int32& damage, int32& /*flatMod*/, float& /*pctMod*/) const
{
Unit* caster = GetCaster();
if (!caster || !caster->ToPlayer())
return;
// Base damage is AP * 2.52214 (from Effect 0 BasePoints)
float attackPower = caster->GetTotalAttackPowerValue(GetSpellInfo()->GetAttackType());
float baseDamage = attackPower * 2.52214f;
// Apply the spell's damage formula: 2.0 * base effect value ($260798s1)
damage = int32(baseDamage * 2.0f);
}
void Register() override
{
CalcDamage += SpellCalcDamageFn(spell_warrior_execute_SpellScript::CalculateExecuteDamage);
}```
Archived author: syntaxhell • Posted: 2025-03-28T14:04:56.614000+00:00
Original source
Based on that Flametoung stuff
Archived author: Tea • Posted: 2025-03-28T14:04:57.191000+00:00
Original source
no
Archived author: Tea • Posted: 2025-03-28T14:05:07.384000+00:00
Original source
forget calculating damage yourself
Archived author: Tea • Posted: 2025-03-28T14:05:23.852000+00:00
Original source
just slap a *2 modifier into `pctMod`
Archived author: Tea • Posted: 2025-03-28T14:06:09.377000+00:00
Original source
your entire function should be just one line, `pctMod *= 2.0f;`