[DiscordArchive] Are you talkable for a bit?
[DiscordArchive] Are you talkable for a bit?
Archived author: syntaxhell • Posted: 2025-03-28T14:25:08.398000+00:00
Original source
Cause this isn't valid
Archived author: Tea • Posted: 2025-03-28T14:25:26.208000+00:00
Original source
why does your CalculateExecuteDamage have no arguments? you cant just remove them
Archived author: syntaxhell • Posted: 2025-03-28T14:25:47.973000+00:00
Original source
Cause I have no idea on what I am doing
Archived author: Tea • Posted: 2025-03-28T14:25:53.087000+00:00
Original source
i can see that
Archived author: Alistar • Posted: 2025-03-28T14:26:09.333000+00:00
Original source
Best thing to do is to start with C++ basics
Archived author: syntaxhell • Posted: 2025-03-28T14:26:19.989000+00:00
Original source
Ah
Archived author: syntaxhell • Posted: 2025-03-28T14:26:42.710000+00:00
Original source
This solved it, looking at arguments:
```// Warrior: Arms, Protection
// Execute damage (SpellID: 260798)
class spell_warr_execute_damage : public SpellScript
{
void CalculateExecuteDamage(SpellEffectInfo const& /*effectInfo*/, Unit const* victim, int32& /*damage*/, int32& /*flatMod*/, float& pctMod) const
{
pctMod *= 2.0f;
}
void Register() override
{
CalcDamage += SpellCalcDamageFn(spell_warr_execute_damage::CalculateExecuteDamage);
}
};```
Archived author: syntaxhell • Posted: 2025-03-28T14:26:56.434000+00:00
Original source
I guess I only need the part for float& pctMod
Archived author: syntaxhell • Posted: 2025-03-28T14:28:22.572000+00:00
Original source
Interesting
Archived author: syntaxhell • Posted: 2025-03-28T14:28:35.075000+00:00
Original source
Thanks for the pointers, compiling now and we'll see