From 9fda302bf320fc6102e51839dbb52767a4c074a2 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Sun, 31 May 2015 18:57:39 +0200 Subject: [PATCH] Spell: - show spellScript in infobox --- pages/spell.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pages/spell.php b/pages/spell.php index 0ff6ddb7..a4365980 100644 --- a/pages/spell.php +++ b/pages/spell.php @@ -227,6 +227,12 @@ class SpellPage extends GenericPage $infobox[] = 'Mode'.Lang::main('colon').Lang::game('modes', $n); $effects = $this->createEffects($infobox, $redButtons); + + // spell script + if (User::isInGroup(U_GROUP_STAFF)) + if ($_ = DB::World()->selectCell('SELECT ScriptName FROM spell_script_names WHERE ABS(spell_id) = ?d', $this->firstRank)) + $infobox[] = 'Script'.Lang::main('colon').$_; + $infobox = $infobox ? '[ul][li]'.implode('[/li][li]', $infobox).'[/li][/ul]' : ''; // append glyph symbol if available