Skip to content

Conversation

ArturKnopik
Copy link
Contributor

Condition doesn't update all stats, for example magic level

try:
local condition = createConditionObject(CONDITION_ATTRIBUTES)
condition:setParameter(CONDITION_PARAM_STAT_MAGICPOINTSPERCENT, 200)
condition:setParameter(CONDITION_PARAM_TICKS, conditionTime)

@ghost ghost merged commit e658d2a into otland:master Dec 4, 2021
@ArturKnopik ArturKnopik deleted the fixSendStats branch December 4, 2021 14:22
@@ -578,6 +579,7 @@ void ConditionAttributes::endCondition(Creature* creature)

if (needUpdateStats) {
player->sendStats();
player->sendSkills();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are sending skills twice in certain scenarios here. 🙄

@ArturKnopik
Copy link
Contributor Author

i will look on this and fix if need in free time

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants