Merge pull request #1610 from p-mcgowan/villagersIntoWitchOnLightning
Villagers into witch on lightning
This commit is contained in:
commit
075daf9beb
@ -37,6 +37,13 @@ bool cVillager::DoTakeDamage(TakeDamageInfo & a_TDI)
|
|||||||
m_World->BroadcastEntityStatus(*this, esVillagerAngry);
|
m_World->BroadcastEntityStatus(*this, esVillagerAngry);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (a_TDI.DamageType == dtLightning)
|
||||||
|
{
|
||||||
|
Destroy();
|
||||||
|
m_World->SpawnMob(GetPosX(), GetPosY(), GetPosZ(), mtWitch);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user