Updated old files + added Shield Block module. by Salarissia · Pull Request #367 · WoWAnalyzer/WoWAnalyzer · GitHub
Skip to content

Updated old files + added Shield Block module. - #367

Merged
MartijnHols merged 1 commit into
WoWAnalyzer:masterfrom
Salarissia:master
Sep 23, 2017
Merged

MartijnHols merged 1 commit into
WoWAnalyzer:masterfrom
Salarissia:master

Conversation

@Salarissia

Copy link
Copy Markdown
Contributor

Updated older files to remove unused & unnecessary lines, added lines for Protection Warrior into the Available Configs file, created a module that shows information revolving around Shield Block usage (total hits mitigated, total hits unmitigated, etc).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Naming style for these is ShieldBlock.

on_byPlayer_removebuff(event) {
const spellId = event.ability.guid;
if (SPELLS.SHIELD_BLOCK_BUFF.id === spellId) {
this.lastShield_BlockBuffApplied = 0;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unsetting a value to NULL would be cleaner, 0 could be a valid value (although it would never happen probably), while NULL is clear.

on_toPlayer_damage(event) {
// Physical
if (event.ability.type === 1) {
if (this.lastShield_BlockBuffApplied > 0) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be replaced with this.combatants.selected.hasBuff(SPELLS.SHIELD_BLOCK_BUFF.id).

@MartijnHols
MartijnHols merged commit c086abf into WoWAnalyzer:master Sep 23, 2017
@MartijnHols

Copy link
Copy Markdown
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants