Passive nano powers pt 1

This commit is contained in:
gsemaj
2022-07-21 09:22:19 -07:00
parent 7a7cdb1330
commit 5b58055924
6 changed files with 57 additions and 42 deletions

View File

@@ -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);
}
}