mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2025-12-19 11:10:34 +00:00
Restructuring, Cleaning up and Bugfixes
* Added findTargets, a new helper function that reads out the packet for targets. * Restructured and removed leftover redundant code.
This commit is contained in:
@@ -712,16 +712,12 @@ void PlayerManager::revivePlayer(CNSocket* sock, CNPacketData* data) {
|
||||
|
||||
bool move = false;
|
||||
|
||||
if (reviveData->iRegenType == 3 && plr->iConditionBitFlag & CSB_BIT_PHOENIX || reviveData->iRegenType == 4) {
|
||||
if (reviveData->iRegenType == 3 && plr->iConditionBitFlag & CSB_BIT_PHOENIX) {
|
||||
// nano revive
|
||||
plr->Nanos[plr->activeNano].iStamina = 0;
|
||||
|
||||
INITSTRUCT(TargetData, targetData);
|
||||
targetData.targetID[0] = plr->iID;
|
||||
for (int i = 1; i < 4; i++)
|
||||
targetData.targetID[i] = -1;
|
||||
NanoManager::nanoUnbuff(sock, targetData, CSB_BIT_PHOENIX, ECSB_PHOENIX, 0, false);
|
||||
|
||||
plr->HP = PC_MAXHEALTH(plr->level);
|
||||
NanoManager::applyBuff(sock, plr->Nanos[plr->activeNano].iSkillID, 2, 1, 0);
|
||||
} else if (reviveData->iRegenType == 4) {
|
||||
plr->HP = PC_MAXHEALTH(plr->level);
|
||||
} else {
|
||||
move = true;
|
||||
|
||||
Reference in New Issue
Block a user