This commit is contained in:
iVampireSP.com 2022-10-23 13:00:41 +08:00
parent 33e00b0ba9
commit e465e7469b
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -95,11 +95,13 @@ public function cost($price = null, $auto = true)
$drops = $transaction->getDrops($this->user_id); $drops = $transaction->getDrops($this->user_id);
if ($price == null) { if ($price !== null) {
$real_price = $price;
} else {
$real_price = $this->price; $real_price = $this->price;
} }
if ($price == 0) { if ($real_price == 0) {
return true; return true;
} }