Increase damage and health for animals?Solved

I am making health and attack power increase for certain mobs.

But it doesn't work, what's the problem?

object OnEntityTakeDamage(BaseCombatEntity entity, HitInfo info)
        {
            if(entity.ShortPrefabName.Contains("zombie") && entity.ShortPrefabName.Contains("wolf"))
            {
                info.damageTypes.Scale(Rust.DamageType.Generic, 1f);
                entity.InitializeHealth(1000f, 1000f);
            }
            
            return null;
        }
1. You scale damage that MOBS GET
2. You change health every time they get damage (they always will have 1000 hp)
5ba216a6d7f65.png Orange
1. You scale damage that MOBS GET
2. You change health every time they get damage (they always will have 1000 hp)

Already modified, thank you for commenting.

You are checking if it contains wolf AND zombie.
5b6ed4c9ac8e4.jpg misticos
You are checking if it contains wolf AND zombie.

already modified :) thanks

Locked automatically