Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: scroll of ascension effect and timer #2348

Merged
merged 2 commits into from
Mar 1, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions data/scripts/actions/items/scroll_of_ascension.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ function scrollOfAscension.onUse(player, item, fromPosition, target, toPosition,
end

if math.random(10) > 1 then
player:setMonsterOutfit("Demon", 30 * 10 * 1000)
player:setMonsterOutfit("Demon", 5 * 60 * 1000)
else
player:setMonsterOutfit("Ferumbras", 30 * 10 * 1000)
player:setMonsterOutfit("Ferumbras", 5 * 60 * 1000)
end
omarcopires marked this conversation as resolved.
Show resolved Hide resolved

player:setExhaustion("scroll-of-ascension", 60 * 60)
player:say("Magical sparks whirl around the scroll as you read it and then your appearance is changing.", TALKTYPE_MONSTER_SAY)
player:getPosition():sendMagicEffect(CONST_ME_MAGIC_RED)
player:getPosition():sendMagicEffect(CONST_ME_HITBYFIRE)
return true
end

Expand Down
Loading