Skip to content

Commit

Permalink
Merge pull request #7 from zackbcom/master
Browse files Browse the repository at this point in the history
fixed case-sensitivity for linux
  • Loading branch information
Sarjuuk committed Sep 1, 2014
2 parents 665dc6a + d371154 commit 0ab0cf1
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions includes/types/item.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1320,8 +1320,8 @@ public function initSubItems()
$ire = DB::Aowow()->select('
SELECT i.id AS ARRAY_KEY_1, ire.id AS ARRAY_KEY_2, iet.chance, ire.*
FROM ?_items i
JOIN item_enchantment_template iet ON iet.entry = ABS(i.randomEnchant)
JOIN ?_itemRandomEnchant ire ON IF(i.randomEnchant > 0, ire.id = iet.ench, ire.id = -iet.ench)
JOIN item_enchantment_template iet ON iet.entry = ABS(i.randomenchant)
JOIN ?_itemrandomenchant ire ON IF(i.randomenchant > 0, ire.id = iet.ench, ire.id = -iet.ench)
WHERE i.id IN (?a)',
array_keys($this->templates)
);
Expand Down
2 changes: 1 addition & 1 deletion setup/tools/dataset/enchants.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ classes:0,
$ench['jsonequip']['requiredLevel'] = $misc['requiredLevel'];

// check if the spell has an entry in skill_line_ability -> Source:Profession
if ($skill = DB::Aowow()->SelectCell('SELECT skillLineId FROM dbc.skillLineAbility WHERE spellId = ?d', $enchantSpells->id))
if ($skill = DB::Aowow()->SelectCell('SELECT skillLineId FROM dbc.skilllineability WHERE spellId = ?d', $enchantSpells->id))
{
$ench['name'][] = $enchantSpells->getField('name', true);
$ench['source'][] = $enchantSpells->id;
Expand Down
2 changes: 1 addition & 1 deletion setup/tools/dataset/glyphs.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
?_spell s1 ON
s1.Id = i.spellid_1
LEFT JOIN
?_glyphProperties g ON
?_glyphproperties g ON
g.Id = s1.effect1MiscValue
LEFT JOIN
?_spell s2 ON
Expand Down
8 changes: 4 additions & 4 deletions setup/tools/dataset/pets.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,16 @@ classification:0, // 0:"Normal", 1:"Elite", 2:"Rar
FROM
world.creature_template ct
JOIN
?_factionTemplate ft ON
ft.Id = ct.faction_A -- no beast has different faction set for Horde
?_factiontemplate ft ON
ft.Id = ct.faction -- no beast has different faction set for Horde
JOIN
dbc.creatureFamily cf ON
dbc.creaturefamily cf ON
cf.Id = ct.family
LEFT JOIN
world.locales_creature lc ON
lc.entry = ct.entry
JOIN
dbc.creatureDisplayInfo cdi ON
dbc.creaturedisplayinfo cdi ON
cdi.id = ct.modelId1
WHERE
cf.petTalentType <> -1 AND
Expand Down
2 changes: 1 addition & 1 deletion setup/tools/dataset/statistics.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function classs()
);

foreach ($dataz as $class => &$data)
$data[2] = array_values(DB::Aowow()->selectRow('SELECT mle.chance*100 cMle, spl.chance*100 cSpl FROM dbc.gtChanceToMeleeCritBase mle, dbc.gtChanceToSpellCritBase spl WHERE mle.idx = spl.idx AND mle.idx = ?d', $class - 1));
$data[2] = array_values(DB::Aowow()->selectRow('SELECT mle.chance*100 cMle, spl.chance*100 cSpl FROM dbc.gtchancetomeleecritbase mle, dbc.gtchancetospellcritbase spl WHERE mle.idx = spl.idx AND mle.idx = ?d', $class - 1));

return $dataz;
}
Expand Down

0 comments on commit 0ab0cf1

Please sign in to comment.