goncalveses
New Member
- Joined
- Sep 18, 2016
- Messages
- 18
- Reaction score
- 2
good night I have a problem that I do not know how to solve, my server limits it to use two spells or more to the same one wanted to put to heal and to use spells
--------------------------------------------
Some good soul could help me edit to release all as spells together ?
C++:
{
if(!player->hasFlag(PlayerFlag_IgnoreProtectionZone) && player->getZone() == ZONE_PROTECTION)
{
player->sendCancelMessage(RET_ACTIONNOTPERMITTEDINPROTECTIONZONE);
return false;
}
if(player->hasCondition(CONDITION_EXHAUST, EXHAUST_COMBAT))
exhausted = true;
}
if(player->hasCondition(CONDITION_EXHAUST, EXHAUST_HEALING))
exhausted = true;
if(exhausted && !player->hasFlag(PlayerFlag_HasNoExhaustion))
{
player->sendCancelMessage(RET_YOUAREEXHAUSTED);
if(isInstant())
g_game.addMagicEffect(player->getPosition(), MAGIC_EFFECT_POFF);
return false;
}
--------------------------------------------
C++:
void Spell::postSpell(Player* player) const
{
if(!player->hasFlag(PlayerFlag_HasNoExhaustion) && exhaustion > 0)
player->addExhaust(exhaustion, isAggressive ? EXHAUST_COMBAT : EXHAUST_HEALING);
if(isAggressive && !player->hasFlag(PlayerFlag_NotGainInFight))
player->addInFightTicks(false);
postSpell(player, (uint32_t)getManaCost(player), (uint32_t)getSoulCost());
}
Some good soul could help me edit to release all as spells together ?
Attachments
-
spells.zip9.7 KB · Views: 4 · VirusTotal