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 condition update stats #3826

Merged
merged 1 commit into from
Dec 4, 2021
Merged

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)

@EPuncker EPuncker 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

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.

4 participants