diff --git a/data-otservbr-global/scripts/actions/quests/ice_islands/yakchal.lua b/data-otservbr-global/scripts/actions/quests/ice_islands/yakchal.lua index 47dfafd807a..db81c1606c2 100644 --- a/data-otservbr-global/scripts/actions/quests/ice_islands/yakchal.lua +++ b/data-otservbr-global/scripts/actions/quests/ice_islands/yakchal.lua @@ -13,7 +13,7 @@ end local iceYakchal = Action() function iceYakchal.onUse(player, item, fromPosition, target, toPosition, isHotkey) local sarcophagus = Position(32205, 31002, 14) - if toPosition.x == sarcophagus.x and toPosition.y == sarcophagus.y and toPosition.z == sarcophagus.z and target.itemid == 7362 and item.itemid == 2361 then + if toPosition.x == sarcophagus.x and toPosition.y == sarcophagus.y and toPosition.z == sarcophagus.z and target.itemid == 7362 and item.itemid == 3249 then if Game.getStorageValue(GlobalStorage.Yakchal) < os.time() then Game.setStorageValue(GlobalStorage.Yakchal, os.time() + 24 * 60 * 60) if math.random(2) == 2 then diff --git a/src/game/game.cpp b/src/game/game.cpp index a9a2786de1a..5dcba79adc1 100644 --- a/src/game/game.cpp +++ b/src/game/game.cpp @@ -7223,7 +7223,13 @@ bool Game::combatChangeMana(std::shared_ptr attacker, std::shared_ptr< } target->drainMana(attacker, manaLoss); - + if (targetPlayer) { + std::string cause = "(other)"; + if (attacker) { + cause = attacker->getName(); + } + targetPlayer->updateInputAnalyzer(damage.primary.type, damage.primary.value * -1, cause); + } std::stringstream ss; std::string damageString = std::to_string(manaLoss);