forked from WoWAnalyzer/WoWAnalyzer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request WoWAnalyzer#6476 from kfinch/feature/druid-guardia…
…n-10.2 Druid Guardian - 10.2 support
- Loading branch information
Showing
11 changed files
with
172 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/analysis/retail/druid/guardian/modules/spells/Mangle.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import SPELLS from 'common/SPELLS'; | ||
import Analyzer from 'parser/core/Analyzer'; | ||
import SpellLink from 'interface/SpellLink'; | ||
import CastEfficiencyPanel from 'interface/guide/components/CastEfficiencyPanel'; | ||
import { explanationAndDataSubsection } from 'interface/guide/components/ExplanationRow'; | ||
|
||
export default class Mangle extends Analyzer { | ||
get guideSubsection() { | ||
const explanation = ( | ||
<p> | ||
<strong> | ||
<SpellLink spell={SPELLS.MANGLE_BEAR} /> | ||
</strong>{' '} | ||
does direct damage and generates rage. Use it on cooldown. The very short cooldown combined | ||
with jammed GCDs means 100% usage will be practically impossible, but get as close as you | ||
can. | ||
</p> | ||
); | ||
|
||
const data = <CastEfficiencyPanel spell={SPELLS.MANGLE_BEAR} useThresholds />; | ||
|
||
return explanationAndDataSubsection(explanation, data); | ||
} | ||
} |
74 changes: 0 additions & 74 deletions
74
src/analysis/retail/druid/guardian/modules/spells/Moonfire.jsx
This file was deleted.
Oops, something went wrong.
78 changes: 78 additions & 0 deletions
78
src/analysis/retail/druid/guardian/modules/spells/Moonfire.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
import { formatPercentage } from 'common/format'; | ||
import SPELLS from 'common/SPELLS'; | ||
import { SpellIcon } from 'interface'; | ||
import Analyzer from 'parser/core/Analyzer'; | ||
import Enemies from 'parser/shared/modules/Enemies'; | ||
import BoringValueText from 'parser/ui/BoringValueText'; | ||
import Statistic from 'parser/ui/Statistic'; | ||
import STATISTIC_ORDER from 'parser/ui/STATISTIC_ORDER'; | ||
import SpellLink from 'interface/SpellLink'; | ||
import { explanationAndDataSubsection } from 'interface/guide/components/ExplanationRow'; | ||
import { RoundedPanel } from 'interface/guide/components/GuideDivs'; | ||
import uptimeBarSubStatistic from 'parser/ui/UptimeBarSubStatistic'; | ||
|
||
const MF_COLOR = '#22aaff'; | ||
|
||
const deps = { | ||
enemies: Enemies, | ||
}; | ||
|
||
export default class Moonfire extends Analyzer.withDependencies(deps) { | ||
get guideSubsection() { | ||
const explanation = ( | ||
<p> | ||
<strong> | ||
<SpellLink spell={SPELLS.MOONFIRE_CAST} /> | ||
</strong>{' '} | ||
is a DoT that can be applied to any number of targets. It's worth maintaining full uptime on | ||
low target counts. | ||
</p> | ||
); | ||
|
||
const history = this.deps.enemies.getDebuffHistory(SPELLS.MOONFIRE_DEBUFF.id); | ||
const uptimeBar = uptimeBarSubStatistic(this.owner.fight, { | ||
spells: [SPELLS.MOONFIRE_DEBUFF], | ||
uptimes: history, | ||
color: MF_COLOR, | ||
}); | ||
const data = ( | ||
<div> | ||
<RoundedPanel> | ||
<strong>Moonfire uptimes</strong> | ||
{uptimeBar} | ||
</RoundedPanel> | ||
</div> | ||
); | ||
|
||
return explanationAndDataSubsection(explanation, data); | ||
} | ||
|
||
get uptime() { | ||
return this.deps.enemies.getBuffUptime(SPELLS.MOONFIRE_DEBUFF.id) / this.owner.fightDuration; | ||
} | ||
|
||
statistic() { | ||
return ( | ||
<Statistic | ||
position={STATISTIC_ORDER.CORE(12)} | ||
size="flexible" | ||
tooltip={ | ||
<> | ||
Your <strong>Moonfire</strong> uptime is{' '} | ||
<strong>{`${formatPercentage(this.uptime)}%`}</strong> | ||
</> | ||
} | ||
> | ||
<BoringValueText | ||
label={ | ||
<> | ||
<SpellIcon spell={SPELLS.MOONFIRE_DEBUFF} /> Moonfire uptime{' '} | ||
</> | ||
} | ||
> | ||
{`${formatPercentage(this.uptime)}%`} | ||
</BoringValueText> | ||
</Statistic> | ||
); | ||
} | ||
} |
69 changes: 0 additions & 69 deletions
69
src/analysis/retail/druid/guardian/modules/spells/Thrash.jsx
This file was deleted.
Oops, something went wrong.
53 changes: 53 additions & 0 deletions
53
src/analysis/retail/druid/guardian/modules/spells/Thrash.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import { formatPercentage } from 'common/format'; | ||
import SPELLS from 'common/SPELLS'; | ||
import { SpellIcon } from 'interface'; | ||
import Analyzer from 'parser/core/Analyzer'; | ||
import Enemies from 'parser/shared/modules/Enemies'; | ||
import BoringValueText from 'parser/ui/BoringValueText'; | ||
import Statistic from 'parser/ui/Statistic'; | ||
import STATISTIC_ORDER from 'parser/ui/STATISTIC_ORDER'; | ||
import SpellLink from 'interface/SpellLink'; | ||
import CastEfficiencyPanel from 'interface/guide/components/CastEfficiencyPanel'; | ||
import { explanationAndDataSubsection } from 'interface/guide/components/ExplanationRow'; | ||
|
||
const deps = { | ||
enemies: Enemies, | ||
}; | ||
|
||
export default class Thrash extends Analyzer.withDependencies(deps) { | ||
get guideSubsection() { | ||
const explanation = ( | ||
<p> | ||
<strong> | ||
<SpellLink spell={SPELLS.THRASH_BEAR} /> | ||
</strong>{' '} | ||
is AoE direct damage and a stacking bleed. It generates rage and should be used on cooldown. | ||
The very short cooldown combined with jammed GCDs means 100% usage will be practically | ||
impossible, but get as close as you can. | ||
</p> | ||
); | ||
|
||
const data = <CastEfficiencyPanel spell={SPELLS.THRASH_BEAR} useThresholds />; | ||
|
||
return explanationAndDataSubsection(explanation, data); | ||
} | ||
|
||
statistic() { | ||
const thrashUptimePercentage = | ||
this.deps.enemies.getBuffUptime(SPELLS.THRASH_BEAR_DOT.id) / this.owner.fightDuration; | ||
|
||
return ( | ||
<Statistic position={STATISTIC_ORDER.CORE(11)} size="flexible"> | ||
<BoringValueText | ||
label={ | ||
<> | ||
<SpellIcon spell={SPELLS.THRASH_BEAR} /> Thrash uptime{' '} | ||
</> | ||
} | ||
> | ||
{`${formatPercentage(thrashUptimePercentage)}%`} | ||
</BoringValueText> | ||
</Statistic> | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters