(WIP) Add src param to transition + certain hooks

Should all hooks have src? I think not
This commit is contained in:
gsemaj
2022-04-12 23:44:12 -04:00
committed by gsemaj
parent 8a26ae2f01
commit e23af08838
5 changed files with 18 additions and 18 deletions

View File

@@ -449,7 +449,7 @@ bool doDamageNDebuff(Mob* mob, sSkillResult_Damage_N_Debuff* respdata, int i, in
respdata[i].iConditionBitFlag = plr->iConditionBitFlag;
if (plr->HP <= 0) {
mob->transition(AIState::RETREAT);
mob->transition(AIState::RETREAT, mob->target);
}
return true;
@@ -523,7 +523,7 @@ bool doDamage(Mob* mob, sSkillResult_Damage* respdata, int i, int32_t targetID,
respdata[i].iHP = plr->HP -= damage;
if (plr->HP <= 0) {
mob->transition(AIState::RETREAT);
mob->transition(AIState::RETREAT, mob->target);
}
return true;
@@ -575,7 +575,7 @@ bool doLeech(Mob* mob, sSkillResult_Heal_HP* healdata, int i, int32_t targetID,
damagedata->iHP = plr->HP -= damage;
if (plr->HP <= 0) {
mob->transition(AIState::RETREAT);
mob->transition(AIState::RETREAT, mob->target);
}
return true;