mirror of
https://github.com/zeldaret/tp
synced 2026-06-07 12:07:34 -04:00
Sakuita rope Matching (#2470)
* Change dComIfGp_getAttention to return a pointer * d_a_obj_sakuita_rope Matching
This commit is contained in:
@@ -348,9 +348,9 @@ u8 daE_YM_c::checkSurpriseLock() {
|
||||
return 0;
|
||||
}
|
||||
if (mAction != 8) {
|
||||
bool truth = dComIfGp_getAttention().LockonTruth();
|
||||
bool truth = dComIfGp_getAttention()->LockonTruth();
|
||||
if (truth) {
|
||||
fopAc_ac_c* tgt = dComIfGp_getAttention().LockonTarget(0);
|
||||
fopAc_ac_c* tgt = dComIfGp_getAttention()->LockonTarget(0);
|
||||
if (tgt == this && mType == 0) {
|
||||
cXyz my_vec_0 = current.pos - mPrevPos;
|
||||
cXyz my_vec_1 = player->current.pos - mPrevPos;
|
||||
@@ -1499,7 +1499,7 @@ void daE_YM_c::executeAttack() {
|
||||
field_0x6a5 = 0;
|
||||
break;
|
||||
case 1:
|
||||
if (field_0x6d4 && (dComIfGp_getAttention().LockonTruth() == 0 || dComIfGp_getAttention().LockonTarget(0) != this)) {
|
||||
if (field_0x6d4 && (dComIfGp_getAttention()->LockonTruth() == 0 || dComIfGp_getAttention()->LockonTarget(0) != this)) {
|
||||
if (checkSurpriseNear()) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user