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

Support/Attack spells not sharing exhaust #22

Closed
peonso opened this issue Aug 21, 2014 · 3 comments
Closed

Support/Attack spells not sharing exhaust #22

peonso opened this issue Aug 21, 2014 · 3 comments
Labels
Milestone

Comments

@peonso
Copy link
Collaborator

peonso commented Aug 21, 2014

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.

@peonso peonso changed the title Support/Attack spells nos sharing exhaust Support/Attack spells not sharing exhaust Aug 22, 2014
@babymannen
Copy link

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))

@tarantonio
Copy link
Contributor

This fix it's not working as intended. I made this changes on engine, recompiled, and the problem remains.

@peonso
Copy link
Collaborator Author

peonso commented 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

4 participants