Skip to content
Snippets Groups Projects
Commit a87e5ca6 authored by Hachem_Muche's avatar Hachem_Muche
Browse files

Updated callObjectTalent function to be more flexible and ensure talent...

Updated callObjectTalent function to be more flexible and ensure talent functions are called with appropriate scope.
Updated tactical function for use_talent powers to ensure the tactical functions are called with the correct scope.

Added .never_fail flag (and support to Actor:preUseTalent) to actor object use talents to prevent failure to use objects when confused, etc.
Added support for on_pre_use_ai function

Updated game:logVisible to correctly identify projectiles (which get a .__is_projectile flag)

Enabled automatic use of object activation talents (more development needed)

Tactical AI:
Fixed a bug causing NPC's to sometimes not use cure/heal abilities effectively
tactical table functions are called with (self, t, aitarget, tact)

Updated charm tactical tables to account for possible resource recovery,
Updated definitions for several boss artifacts for NPC use: Wintertide (also fixed bug causing permanent ice walls), Crystal Shard,
Choker of Dread (fixed bug causing summon to not taunt foes), Rod of Annulment, Psionic Fury.

Talents:
Dark Tendrils: updated target table for AI use
Illumination: updated target and tactical tables so that NPC's will use it above level 3.
Fire Breath: added disable to tactical table.
Chain Lightning: updated target table for AI use
Disperse Magic: expanded tactical table to allow for both offensive and defensive use.
Tidal Wave: updated target table to allow AI use
Shattering Blow: corrected tactical table
Inertial Shot: updated on_pre_use function to check for enough ammo (temporary pending more general fix of archery talents)
***Note unrelated AI error with archery talents being used without ammo

Sunder Armor/Arms effects: added gain/lose messages
parent ca778888
No related branches found
No related tags found
1 merge request!261NPC Object Use
Showing
with 397 additions and 204 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment