mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2025-12-16 18:10:05 +00:00
(WIP) Add src param to transition + certain hooks
Should all hooks have src? I think not
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user