Code: Select all
version "4.12"
class MySuperArmor : BasicArmor
{
override void ModifyDamage(int damage, Name damageType, out int newdamage, bool passive, Actor inflictor, Actor source, int flags)
{
Console.printf("foo");
if (passive && damage > 0)
{
Console.printf("bar!");
newdamage = 0;
}
}
}
It this by design?
I've tested with the GIT version.