* 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:
Sarjuuk
2017-03-22 20:30:14 +01:00
parent f9416c549d
commit b6b734ff36
5 changed files with 19 additions and 7 deletions

View File

@@ -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;

View File

@@ -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(', ', $_))