Igor Santos213
New Member
- Joined
- Oct 4, 2017
- Messages
- 13
- Reaction score
- 0
Good night everyone, I come across a rather annoying problem and wanted the help of you, tidying up the Exhausted from my server I came across a problem, in which a heal spell, not used with a combo spell, etcc. I noticed that they were separated into groups, even when editing xml, one can not be used together with another, so I started searching in my source and I came across some lines that could solve my problem, which is to use the 3 spells at the same time, so I have to take the check that separates the 3 groups to ignore them so the 3 work together. Can anybody help me ?
Spell.cpp
void SpellostSpell(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());
}
what I want to do here, and check out and make the 3 different types work together.
Spell.cpp
void SpellostSpell(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());
}
what I want to do here, and check out and make the 3 different types work together.