[DiscordArchive] Are you talkable for a bit?
[DiscordArchive] Are you talkable for a bit?
Archived author: syntaxhell • Posted: 2025-03-28T14:17:47.800000+00:00
Original source
I guess I need to learn more
Archived author: syntaxhell • Posted: 2025-03-28T14:17:54.995000+00:00
Original source
I have no idea how to create it as a function
Archived author: Tea • Posted: 2025-03-28T14:18:15.294000+00:00
Original source
where did you even get lost
Archived author: Tea • Posted: 2025-03-28T14:18:35.049000+00:00
Original source
CalculateExecuteDamage is the function
Archived author: syntaxhell • Posted: 2025-03-28T14:18:45.490000+00:00
Original source
Oh
Archived author: syntaxhell • Posted: 2025-03-28T14:24:08.574000+00:00
Original source
But why not calculate like this damage = int32(damage * 2.0f); instead?
Archived author: syntaxhell • Posted: 2025-03-28T14:24:17.125000+00:00
Original source
It does not seem to find pctMod anywhere
Archived author: Tea • Posted: 2025-03-28T14:24:46.950000+00:00
Original source
you were supposed to uncomment the argument
Archived author: syntaxhell • Posted: 2025-03-28T14:24:56.683000+00:00
Original source
I did
Archived author: syntaxhell • Posted: 2025-03-28T14:25:05.417000+00:00
Original source
// Warrior: Arms, Protection
// Execute damage (SpellID: 260798)
class spell_warr_execute_damage : public SpellScript
{
void CalculateExecuteDamage()
{
pctMod *= 2.0f;
}
void Register() override
{
CalcDamage += SpellCalcDamageFn(spell_warr_execute_damage::CalculateExecuteDamage);
}
};