Skip to content

Commit

Permalink
feat: make vampiragers attack vampire hunters
Browse files Browse the repository at this point in the history
  • Loading branch information
williambl committed Jul 14, 2022
1 parent 709d5f1 commit 226971a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import com.williambl.haema.ability.VampireAbility
import com.williambl.haema.ability.component.dash.DashAbilityComponent
import com.williambl.haema.api.VampireBurningEvents
import com.williambl.haema.effect.SunlightSicknessEffect
import com.williambl.haema.hunter.VampireHunterEntity
import com.williambl.haema.isVampire
import com.williambl.haema.vampireComponent
import net.minecraft.entity.*
Expand Down Expand Up @@ -53,6 +54,7 @@ class VampiragerEntity(entityType: EntityType<out VampiragerEntity>, world: Worl
this.goalSelector.add(7, LookAroundGoal(this))
this.targetSelector.add(1, RevengeGoal(this))
this.targetSelector.add(2, ActiveTargetGoal(this, PlayerEntity::class.java, 10, true, false) { !it.isVampire })
this.targetSelector.add(2, ActiveTargetGoal(this, VampireHunterEntity::class.java, true, false))
this.targetSelector.add(3, DrinkBloodActiveTargetGoal(this, LivingEntity::class.java, true))
}

Expand Down

0 comments on commit 226971a

Please sign in to comment.