Skip to content

Commit 14da405

Browse files
committed
fix shield
1 parent acdd743 commit 14da405

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Kernel/Wizardry/Misc/Shield/Source/ShieldCore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ void BattleHit_ConsumeShield(struct BattleUnit *attacker, struct BattleUnit *def
173173
sinfo = GetBattleUnitShield(defender);
174174
if (sinfo && sinfo->iid != ITEM_NONE && sinfo->consume_on_defense)
175175
if (!sinfo->consume_on_hitted || !(gBattleHitIterator->attributes & BATTLE_HIT_ATTR_MISS))
176-
consume_unit_item(&attacker->unit, sinfo->iid);
176+
consume_unit_item(&defender->unit, sinfo->iid);
177177
}
178178

179179
/**

0 commit comments

Comments
 (0)