mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-22 05:20:05 +00:00
Tweaked mob and nano skills
This commit is contained in:
parent
540c37a523
commit
3445c0bbc3
@ -1779,7 +1779,7 @@ bool doDamageNDebuff(Mob *mob, sSkillResult_Damage_N_Debuff *respdata, int i, in
|
|||||||
pkt.eTBU = 1; // eTimeBuffUpdate
|
pkt.eTBU = 1; // eTimeBuffUpdate
|
||||||
pkt.eTBT = 2;
|
pkt.eTBT = 2;
|
||||||
pkt.iConditionBitFlag = plr->iConditionBitFlag |= bitFlag;
|
pkt.iConditionBitFlag = plr->iConditionBitFlag |= bitFlag;
|
||||||
pkt.TimeBuff.iValue = amount;
|
pkt.TimeBuff.iValue = amount * 5;
|
||||||
sock->sendPacket((void*)&pkt, P_FE2CL_PC_BUFF_UPDATE, sizeof(sP_FE2CL_PC_BUFF_UPDATE));
|
sock->sendPacket((void*)&pkt, P_FE2CL_PC_BUFF_UPDATE, sizeof(sP_FE2CL_PC_BUFF_UPDATE));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,6 +7,8 @@
|
|||||||
#include "MissionManager.hpp"
|
#include "MissionManager.hpp"
|
||||||
#include "GroupManager.hpp"
|
#include "GroupManager.hpp"
|
||||||
|
|
||||||
|
#include <cmath>
|
||||||
|
|
||||||
std::map<int32_t, NanoData> NanoManager::NanoTable;
|
std::map<int32_t, NanoData> NanoManager::NanoTable;
|
||||||
std::map<int32_t, NanoTuning> NanoManager::NanoTunings;
|
std::map<int32_t, NanoTuning> NanoManager::NanoTunings;
|
||||||
std::map<int32_t, SkillData> NanoManager::SkillTable;
|
std::map<int32_t, SkillData> NanoManager::SkillTable;
|
||||||
@ -712,7 +714,7 @@ bool doDamage(CNSocket *sock, sSkillResult_Damage *respdata, int i, int32_t targ
|
|||||||
|
|
||||||
Player *plr = PlayerManager::getPlayer(sock);
|
Player *plr = PlayerManager::getPlayer(sock);
|
||||||
|
|
||||||
int damage = MobManager::hitMob(sock, mob, PC_MAXHEALTH(plr->level) * amount / 2000 + mob->appearanceData.iHP * amount / 2000);
|
int damage = MobManager::hitMob(sock, mob, std::max(PC_MAXHEALTH(plr->level) * amount / 1000, mob->maxHealth * amount / 1000));
|
||||||
|
|
||||||
respdata[i].eCT = 4;
|
respdata[i].eCT = 4;
|
||||||
respdata[i].iDamage = damage;
|
respdata[i].iDamage = damage;
|
||||||
|
Loading…
Reference in New Issue
Block a user