-
Notifications
You must be signed in to change notification settings - Fork 593
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
Enduring Luminescence #2361
Enduring Luminescence #2361
Conversation
…luminescence merge
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.
Just some nitpicking on the formatting, the code itself looks good.
|
||
handlePWRBonus(event) { | ||
const spellId = event.ability.guid; | ||
if (spellId !== SPELLS.POWER_WORD_RADIANCE.id) return; |
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.
if () {
return;
}
just to keep it consistent across the code-base. I personally prefer it this way aswell, but 🤷♂️
super(...args); | ||
|
||
this.ranks = | ||
this.selectedCombatant.traitRanks(SPELLS.ENDURING_LUMINESCENCE.id) || []; |
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.
I think Zero had a few weeks ago an argument about max-line length stuff and making too much use of the enter-key.
This should be one line
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.
Yeah sure, thanks for the feedback on formatting. Personally I use prettier with an 80 char max length for diffing side by side, but it's not a huge deal.
this.selectedCombatant.traitRanks(SPELLS.ENDURING_LUMINESCENCE.id) || []; | ||
this.bonusHealing = | ||
this.ranks | ||
.map(rank => |
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.
Same as above, I think we usually format it this way.
this.bonusHealing = this.ranks
.map(rank => calculateAzeriteEffects(SPELLS.ENDURING_LUMINESCENCE.id, rank))
.reduce((total, bonus) => total + bonus, 0) * HEALING_MULTIPLIER;
const target = this.atonement.currentAtonementTargets.find( | ||
id => id.target === event.targetID | ||
); | ||
if (!target) return; |
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.
Return
id => id.target === event.targetID | ||
); | ||
if (!target) return; | ||
if (!target.isEnduringEmpowered) return; |
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.
Return
event.timestamp < | ||
target.atonementExpirationTimestamp - EnduringLuminescence.bonusDuration | ||
) | ||
{return;} |
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.
if (
event.timestamp <
target.atonementExpirationTimestamp - EnduringLuminescence.bonusDuration
) {
return;
}
category={STATISTIC_CATEGORY.AZERITE_POWERS} | ||
position={STATISTIC_ORDER.OPTIONAL()} | ||
icon={ | ||
( |
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.
The (
-bracket isn't necessary and the spellIcon should be in the same line as the icon-prop
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.
This breaks our linting unfortunately, I'll meet at the middle.
Travis tests have failedHey @rp4rk, Node.js: 10.4echo "> The server has already been built so we no longer need the devDependencies (reduces the final bundle size)"
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then echo "> Disabling sourcemap generation to save build time, this is a PR so won't be deployed anyway."; export GENERATE_SOURCEMAP=false; fi
npm run build
TravisBuddy Request Identifier: c85eb730-cad7-11e8-8b3f-99c2825e6a65 |
Travis failed because the StatTracker is now located in |
return; | ||
} | ||
|
||
let eventHealing = this.bonusHealing; |
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.
In general traits are affected by secondary stats and multipliers (except primary stat).
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.
StatTracker location
Travis tests have failedHey @rp4rk, 1st Builddocker build -f .docker/production/Dockerfile --tag wowanalyzer .
TravisBuddy Request Identifier: addf0b00-e6cd-11e8-87c2-ebfa2f2e9d99 |
No update in a month, and I see some other things that will need changing. Just re-open the PR if you are active and I will put in my review :) |
Implements the Enduring Luminescence trait for Discipline Priests.