Open zach2good opened 3 years ago
cmbSkill should be deprecated phased out and unused by even regular mobs, let alone trusts as its correct and accurate that they do not actually have weapons equipped, and the if check condition should be adjusted to check for 2 handed equipped OR isn't a player.
if target:isWeaponTwoHanded() or not target:isPC() then -- If we're not a PC, we don't care about weapons
Additional note: there will be other things like this and you will run into quotes of SE saying such and such trust "counts as using a 2 handed weapon" - this ONLY means that they get the benefits of traits that in players hands would depend on 2 handed weapons, and not that they are coded to use a 2 handed weapon. Like other things player shave to put effort into (such as certain merit bonuses), mobs (and by extension trusts) just get the perks for free.
I have:
Additional Information (Steps to reproduce/Expected behavior) : From @Omnione
Everything in core works as expected, upon looking in the scripts: https://github.com/project-topaz/topaz/blob/59597822cc386ae8022d07df104408f8d15d87d2/scripts/globals/abilities/hasso.lua#L26
This call will fail, as trusts are mobs behind the scenes - and don't have equipment.
This call requires equipment:
Possible ways to handle this: The
mob_pool
entries for Trusts have correct cmbSkill, but it isn't assigned to anything. If it was looked at on load and then used to set them_twoHanded
flag - Hasso might start working.Probably worth looking through all the other abilities that Trusts use and see if there are other gotchas like this