diff --git a/includes/types/spell.class.php b/includes/types/spell.class.php index 69a27cb5..e9c6120b 100644 --- a/includes/types/spell.class.php +++ b/includes/types/spell.class.php @@ -186,7 +186,7 @@ class SpellList extends BaseType Util::arraySumByKey($stats, [ITEM_MOD_STAMINA => $pts]); else if ($mv == STAT_INTELLECT) Util::arraySumByKey($stats, [ITEM_MOD_INTELLECT => $pts]); - else if ($mv == ITEM_MOD_SPIRIT) + else if ($mv == STAT_SPIRIT) Util::arraySumByKey($stats, [ITEM_MOD_SPIRIT => $pts]); else // one bullshit trigger_error('AuraId 29 of spell #'.$this->id.' has wrong statId #'.$mv, E_USER_WARNING); diff --git a/setup/updates/1439909965_01.sql b/setup/updates/1439909965_01.sql new file mode 100644 index 00000000..8d0c8583 --- /dev/null +++ b/setup/updates/1439909965_01.sql @@ -0,0 +1 @@ +UPDATE aowow_dbversion SET `sql` = CONCAT(`sql`, ' item_stats');