mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Fixups
* undefined variables in Markup.js * logic error preventing screenshot uploads * bitshift by negative value in spell * and i'm pretty sure i already added an exception handler at one point
This commit is contained in:
@@ -107,7 +107,7 @@ class ScreenshotPage extends GenericPage
|
||||
{
|
||||
$this->imgHash = Util::createHash(16);
|
||||
|
||||
if (User::canUploadScreenshot())
|
||||
if (!User::canUploadScreenshot())
|
||||
{
|
||||
$_SESSION['error']['ss'] = Lang::screenshot('error', 'notAllowed');
|
||||
return false;
|
||||
|
||||
@@ -1888,7 +1888,7 @@ class SpellPage extends GenericPage
|
||||
case 147: // Mechanic Immunity Mask
|
||||
$_ = [];
|
||||
foreach (Lang::game('me') as $k => $str)
|
||||
if ($effMV & (1 << $k - 1))
|
||||
if ($k && ($effMV & (1 << $k - 1)))
|
||||
$_[] = $str;
|
||||
|
||||
if ($_ = implode(', ', $_))
|
||||
@@ -1968,7 +1968,7 @@ class SpellPage extends GenericPage
|
||||
case 180: // Mod Spell Damage Versus
|
||||
$_ = [];
|
||||
foreach (Lang::game('ct') as $k => $str)
|
||||
if ($effMV & (1 << $k - 1))
|
||||
if ($k && ($effMV & (1 << $k - 1)))
|
||||
$_[] = $str;
|
||||
|
||||
if ($_ = implode(', ', $_))
|
||||
|
||||
Reference in New Issue
Block a user