mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Spells/DK
* fixed setup flagging wrong spells as hidden * fixed menu structure for DK spells not requiring DK class * fixed type for rune cost in spell tooltip
This commit is contained in:
@@ -759,14 +759,14 @@ class SpellList extends BaseType
|
||||
$pt = $this->curTpl['powerType'];
|
||||
|
||||
if ($pt == POWER_RUNE && ($rCost = ($this->curTpl['powerCostRunes'] & 0x333)))
|
||||
{ // Blood 2|1 - Unholy 2|1 - Frost 2|1
|
||||
{ // Frost 2|1 - Unholy 2|1 - Blood 2|1
|
||||
$runes = [];
|
||||
if ($_ = (($rCost & 0x300) >> 8))
|
||||
$runes[] = $_.' '.Lang::spell('powerRunes', 0);
|
||||
$runes[] = $_.' '.Lang::spell('powerRunes', 2);
|
||||
if ($_ = (($rCost & 0x030) >> 4))
|
||||
$runes[] = $_.' '.Lang::spell('powerRunes', 1);
|
||||
if ($_ = ($rCost & 0x003))
|
||||
$runes[] = $_.' '.Lang::spell('powerRunes', 2);
|
||||
$runes[] = $_.' '.Lang::spell('powerRunes', 0);
|
||||
|
||||
$str .= implode(', ', $runes);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user