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:
Sarjuuk
2019-01-04 17:14:49 +01:00
parent 7f36dc87cf
commit 0fd2944d8b
3 changed files with 7 additions and 5 deletions

View File

@@ -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);
}