diff --git a/webapp/models/LuckySymbol.php b/webapp/models/LuckySymbol.php index e28924e3..5c4cf808 100644 --- a/webapp/models/LuckySymbol.php +++ b/webapp/models/LuckySymbol.php @@ -61,6 +61,20 @@ class LuckySymbol extends BaseModel { $val = 0; if (self::hasLuckySymbol()) { $itemMeta = myself()->_callMtStatic('Item', 'getLuckySymbolMeta'); + if ($itemMeta) { + $potionMeta = myself()->_callMtStatic('BattlePotion', 'find', $itemMeta['id']); + if ($potionMeta) { + $effectStrs = explode('|', $potionMeta['effect']); + if (count($effectStrs) > 0) { + $effectStrs2 = explode('|', $effectStrs[0]); + if (count($effectStrs2) >= 2) { + if ($effectStrs2[0] == 54) { + $val += $effectStrs2[1]; + } + } + } + } + } } return $val; }