1
0

villagers turn into witches on lightning

This commit is contained in:
p-mcgowan 2014-11-21 23:36:35 -08:00
parent ac2e3ede1d
commit 635e9321c6

View File

@ -37,10 +37,12 @@ bool cVillager::DoTakeDamage(TakeDamageInfo & a_TDI)
m_World->BroadcastEntityStatus(*this, esVillagerAngry);
}
}
if (a_TDI.DamageType == dtLightning)
{
m_World->SpawnMob((int) GetPosX(), (int) GetPosY(), (int) GetPosZ(), mtWitch);
super::Destroy(this);
Destroy();
m_World->SpawnMob(GetPosX(), GetPosY(), GetPosZ(), mtWitch);
return true;
}
return true;
}