mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2025-11-30 04:20:06 +00:00
Passive nano powers pt 1
This commit is contained in:
@@ -351,6 +351,7 @@ static void dotDamageOnOff(CNSocket *sock, CNPacketData *data) {
|
||||
if (pkt->iFlag && !plr->hasBuff(ECSB_INFECTION)) {
|
||||
BuffStack infection = {
|
||||
-1, // infinite
|
||||
NULL,
|
||||
sock, // self-inflicted
|
||||
BuffClass::ENVIRONMENT,
|
||||
[](EntityRef host, BuffStack* stack) {
|
||||
@@ -746,7 +747,7 @@ static void playerTick(CNServer *serv, time_t currTime) {
|
||||
if (skill->drainType == SkillDrainType::PASSIVE) {
|
||||
// apply passive buff
|
||||
drainRate = skill->batteryUse[boost * 3];
|
||||
Abilities::usePassiveNanoSkill(skill, plr);
|
||||
Abilities::usePassiveNanoSkill(skill, plr, boost * 3);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user