From 0f19f969c950751867e7ddc75da20dbcc0536f99 Mon Sep 17 00:00:00 2001 From: Karathan Date: Tue, 15 Jan 2019 01:11:34 +0100 Subject: [PATCH] modify net animation for sticky web --- src/bug.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bug.c b/src/bug.c index 31d1a9740..fee1eda45 100644 --- a/src/bug.c +++ b/src/bug.c @@ -317,7 +317,12 @@ void sub_811067C(struct Sprite *sprite) { SetGpuReg(REG_OFFSET_BLDCNT, BLDCNT_TGT2_ALL | BLDCNT_EFFECT_BLEND); SetGpuReg(REG_OFFSET_BLDALPHA, BLDALPHA_BLEND(16, 0)); + if (GetBattlerSide(gBattleAnimAttacker)) + sprite->pos1.x -= gBattleAnimArgs[0]; + else + sprite->pos1.x += gBattleAnimArgs[0]; + sprite->pos1.y += gBattleAnimArgs[1]; sprite->data[0] = 16; sprite->callback = sub_81106A4; }