villagers turn into witches when struck by lightning
This commit is contained in:
parent
f3e9fa74d2
commit
ac2e3ede1d
@ -37,6 +37,11 @@ bool cVillager::DoTakeDamage(TakeDamageInfo & a_TDI)
|
|||||||
m_World->BroadcastEntityStatus(*this, esVillagerAngry);
|
m_World->BroadcastEntityStatus(*this, esVillagerAngry);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (a_TDI.DamageType == dtLightning)
|
||||||
|
{
|
||||||
|
m_World->SpawnMob((int) GetPosX(), (int) GetPosY(), (int) GetPosZ(), mtWitch);
|
||||||
|
super::Destroy(this);
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user