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

Associated exhausts for support and attack spells #25

Closed
peonso opened this issue Jun 23, 2016 · 0 comments
Closed

Associated exhausts for support and attack spells #25

peonso opened this issue Jun 23, 2016 · 0 comments
Labels
Milestone

Comments

@peonso
Copy link
Owner

peonso commented Jun 23, 2016

Ezzz-dev/OTHire#49
Ezzz-dev/OTHire#22

Healing and attacking spells are not sharing exhaust.

From what I remember, at 7.72 era exhaust should work like that:
After an aggressive spell you should wait 2 seconds to cast any other spell.
After an non-aggressive spell you should wait 1 second to cast any other spell.
But it's working like current Tibia, http://tibia.wikia.com/wiki/Exhaust. I can, for exemple, heal myself (exura vita) + GFB at the same moment. Or exura vita, GFB a fraction of time after that, and exura vita again 1 second after the first exura vita.

In spells.cpp,

bool Spell::playerSpellCheck(Player* player) const

Scroll down and find:

if( (isAggressive && player->hasCondition(CONDITION_EXHAUST_COMBAT)) || (!isAggressive && player->hasCondition(CONDITION_EXHAUST_HEAL)) )

Change to:

if (player->hasCondition(CONDITION_EXHAUST_COMBAT) ||   player->hasCondition(CONDITION_EXHAUST_HEAL))
@peonso peonso added the bug label Jun 23, 2016
@peonso peonso added this to the 1.0 milestone Jul 19, 2016
@peonso peonso closed this as completed in 725be0a Jul 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant