ULTIMA8: Call gotHit event with correct parameters for Crusader

This commit is contained in:
Matthew Duggan 2020-10-18 15:45:09 +09:00
parent 2e1880944d
commit 8cf85caca1

View File

@ -1997,7 +1997,7 @@ void Item::receiveHitCru(uint16 other, Direction dir, int damage, uint16 type) {
uint8 shouldCallUsecode = 1;
if (shouldCallUsecode)
callUsecodeEvent_gotHit(other, 0);
callUsecodeEvent_gotHit(0x4000, (type << 8) | (damage & 0xff));
if (damageInfo) {
bool wasbroken = damageInfo->applyToItem(this, damage);