mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
misc fixes
This commit is contained in:
@@ -235,7 +235,7 @@ class ItemList extends BaseType
|
||||
// requires map (todo: reparse ?_zones for non-conflicting data; generate Link to zone)
|
||||
if ($this->curTpl['Map'])
|
||||
{
|
||||
$map = DB::Aowow()->selectRow('SELECT * FROM ?_zones WHERE mapid=?d LIMIT 1', $this->curTpl['Map']);
|
||||
$map = DB::Aowow()->selectRow('SELECT * FROM ?_zones WHERE mapId=?d LIMIT 1', $this->curTpl['Map']);
|
||||
$x .= '<br />'.Util::localizedString($map, 'name');
|
||||
}
|
||||
|
||||
|
||||
@@ -528,7 +528,7 @@ class SmartyAoWoW extends Smarty
|
||||
'reqCSS' => [], // <[string,string]> path to required CSSFile, IE condition
|
||||
'title' => null, // [string] page title
|
||||
'tab' => null, // [int] # of tab to highlight in the menu
|
||||
'type' => null, // [int] numCode for spell, npx, object, ect
|
||||
'type' => null, // [int] numCode for spell, npc, object, ect
|
||||
'typeId' => null, // [int] entry to display
|
||||
'path' => '[]', // [string] (js:array) path to preselect in the menu
|
||||
'gStaticUrl' => substr('http://'.$_SERVER['SERVER_NAME'].strtr($_SERVER['SCRIPT_NAME'], ['index.php' => '']), 0, -1)
|
||||
|
||||
@@ -182,7 +182,7 @@ if (!$smarty->loadCache($cacheKeyPage, $pageData))
|
||||
case ACHIEVEMENT_CRITERIA_TYPE_PLAY_ARENA:
|
||||
case ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_BATTLEGROUND:
|
||||
case ACHIEVEMENT_CRITERIA_TYPE_DEATH_AT_MAP:
|
||||
if ($zoneId = DB::Aowow()->selectCell('SELECT areatableID FROM ?_zones WHERE mapID = ? LIMIT 1', $obj))
|
||||
if ($zoneId = DB::Aowow()->selectCell('SELECT id FROM ?_zones WHERE mapId = ? LIMIT 1', $obj))
|
||||
$tmp['link'] = array(
|
||||
'href' => '?zone='.$zoneId,
|
||||
'text' => $crtName,
|
||||
|
||||
@@ -258,7 +258,7 @@ if (!$smarty->loadCache($cacheKeyPage, $pageData))
|
||||
$foo['icon']['count'] = "'".($effBP + 1).'-'.$foo['icon']['count']."'";
|
||||
}
|
||||
// .. from spell
|
||||
else if ($_ = $spell->getField('effect'.$i.'TriggerSpell'))
|
||||
else if (($_ = $spell->getField('effect'.$i.'TriggerSpell')) && $_ > 0)
|
||||
{
|
||||
$trig = new SpellList(array(['s.id', (int)$_]));
|
||||
|
||||
@@ -438,14 +438,15 @@ if (!$smarty->loadCache($cacheKeyPage, $pageData))
|
||||
case 69: // School Absorb
|
||||
case 72: // Mod Power Cost School Percent
|
||||
case 74: // Reflect Spell School
|
||||
case 79: // Mod Damage Pct Done
|
||||
case 79: // Mod Damage Done Pct
|
||||
case 81: // Split Damage Pct
|
||||
case 87: // Mod Dmg Taken Pct
|
||||
case 87: // Mod Damage Taken Pct
|
||||
case 97: // Mana Shield
|
||||
case 101: // Mod Resistance Pct
|
||||
case 115: // Mod Healing Taken
|
||||
case 118: // Mod Healing Pct
|
||||
case 118: // Mod Healing Taken Pct
|
||||
case 135: // Mod Healing Done
|
||||
case 136: // Mod Healing Done Pct
|
||||
case 142: // Mod Base Resistance Pct
|
||||
case 143: // Mod Resistance Exclusive
|
||||
case 149: // Reduce Pushback
|
||||
|
||||
@@ -68,7 +68,7 @@ if (!defined('AOWOW_REVISION'))
|
||||
|
||||
$queryZones = '
|
||||
SELECT DISTINCT
|
||||
z.areatableId AS location
|
||||
z.id AS location
|
||||
FROM
|
||||
world.creature c
|
||||
JOIN
|
||||
@@ -84,7 +84,7 @@ if (!defined('AOWOW_REVISION'))
|
||||
|
||||
$queryInstanceZone = '
|
||||
SELECT DISTINCT
|
||||
z.areatableId AS location
|
||||
z.id AS location
|
||||
FROM
|
||||
world.creature c,
|
||||
?_zones z
|
||||
|
||||
Reference in New Issue
Block a user