New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[6.x] Scripts/Spells: K'ure & Decimatus, SAI + spell scripts. #17343
Conversation
Add Decimatus SAI and Dark Siphon spell condition target.
Decimatus Transformation Sickness.
Sql name. |
Na, it won't, no one merged db content on 6.x branch that day. |
{ | ||
if (Unit* caster = GetCaster()) | ||
caster->SetHealth(caster->CountPctFromMaxHealth(10)); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
void HandleScript(SpellEffIndex /effIndex/)
{
if (Unit* caster = GetCaster())
uint32 hp = caster->CountPctFromMaxHealth(10);
if (hp)
caster->SetHealth(hp);
}
Maybe this better? Also add in database HealthRegen interrupt flag.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
caster can't be null there, so useless check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
caster can't be null there, so useless check
Okay, you can suggested new variant? See below.
Variant 1:
void HandleScript(SpellEffIndex /*effIndex*/)
{
GetCaster()->SetHealth(GetCaster()->CountPctFromMaxHealth(10));
}
Or variant 2:
void HandleScript(SpellEffIndex /*effIndex*/)
{
if (Unit* target = GetHitUnit())
target->SetHealth(target->CountPctFromMaxHealth(10));
}
Right?
Don't worry, I was staring sql date before add file. |
And then you never know what comes into head Blizzard.
Add support spell scripts for 189549, 189512 and 189491.
Changes proposed:
Target branch(es): 335/6x
6.x
Issues addressed: Fixes #
closes #16175
closes #15433
Tests performed: (Does it build, tested in-game, etc)
SAI and spell condition tested, spell script not tested.
Update:
Spell 169869 and 189491 testing in game, working, you can merge.
Known issues and TODO list:
Maybe this method better, or all right?
NOTE If your Pull Request is SQL only create a ticket instead
SUGESTION If your Pull Request contains SQL give it one imposible date, for example 9999_99_99_99_database.sql on that way it will be free on merge.