Skip to content

fix: some npc behaviors#2474

Merged
pandinocoder merged 3 commits intoAscensionGameDev:mainfrom
WeylonSantana:fix-2460
Jan 15, 2025
Merged

fix: some npc behaviors#2474
pandinocoder merged 3 commits intoAscensionGameDev:mainfrom
WeylonSantana:fix-2460

Conversation

@WeylonSantana
Copy link
Contributor

@WeylonSantana WeylonSantana commented Jan 14, 2025

resolves #2460

  1. Hit entity when entity is invisble in 3 cases
    a. when using projectiles spells
    b. when using aoe spells
    c. when using single target spell on a visible player, but there is player in stealth inside hit radius
  2. Dont keep looking at the entity if the entity is invisible
  3. If there is another valid target on range when the current target becomes invisible, change target.

@WeylonSantana WeylonSantana changed the title fix: npc not hitting player when casting projectile or aoe fix: some npc behaviors Jan 15, 2025
@dhmello
Copy link
Contributor

dhmello commented Jan 15, 2025

Does this also work with the isHide function used by events?

WeylonSantana and others added 3 commits January 16, 2025 00:23
@pandinocoder pandinocoder merged commit 90b62d7 into AscensionGameDev:main Jan 15, 2025
1 check passed
@pandinocoder pandinocoder deleted the fix-2460 branch January 15, 2025 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: NPCs spells can't hit steath players

3 participants