BattletechModders / CBTBehaviorsEnhanced

Applies Classic BattleTech behaviors to the HBS BattleTech Game
MIT License
5 stars 6 forks source link

Charge only does 25 damage instead of expected 306 #109

Closed IceRaptor closed 2 years ago

IceRaptor commented 3 years ago

Hurm 01:19:03.340 FAILED TO APPLY MELEE DAMAGE TO ATTACKER! 01:19:03.340 Object reference not set to an instance of an object 01:19:03.340 at (wrapper dynamic-method) BattleTech.Weapon.WillFireAtTargetFromPosition_Patch2(object,BattleTech.ICombatant,UnityEngine.Vector3,UnityEngine.Quaternion) at BattleTech.AttackDirector+AttackSequence..ctor (BattleTech.AttackDirector director, BattleTech.AbstractActor attacker, BattleTech.ICombatant target, UnityEngine.Vector3 attackPosition, UnityEngine.Quaternion attackRotation, System.Int32 attackSequenceIdx, System.Collections.Generic.List1[T] selectedWeapons, BattleTech.MeleeAttackType meleeAttackType, System.Int32 calledShotLocation, System.Boolean isMoraleAttack, System.Int32 id, System.Int32 stackItemUID) [0x00111] in <4184af8dbeb44635831353f4d349631c>:0 at (wrapper dynamic-method) BattleTech.AttackDirector.CreateAttackSequence_Patch2(object,int,BattleTech.AbstractActor,BattleTech.ICombatant,UnityEngine.Vector3,UnityEngine.Quaternion,int,System.Collections.Generic.List1,BattleTech.MeleeAttackType,int,bool) at CBTBehaviorsEnhanced.Helper.AttackHelper.CreateImaginaryAttack (BattleTech.Mech attacker, BattleTech.Weapon attackWeapon, BattleTech.ICombatant target, System.Int32 weaponHitInfoStackItemUID, System.Single[] damageClusters, BattleTech.DamageType damageType, BattleTech.MeleeAttackType attackType) [0x001cd] in :0 at CBTBehaviorsEnhanced.Melee.MechMeleeSequence_OnMeleeComplete.Prefix (BattleTech.MechMeleeSequence __instance, MessageCenterMessage message, BattleTech.AttackStackSequence ___meleeSequence) [0x00285] in :0 01:19:03.340FAILED TO APPLY MELEE DAMAGE TO ATTACKER!

IceRaptor commented 3 years ago

BTALogs-20210908_212400.zip

IceRaptor commented 2 years ago

This was fixed with corrections to imaginary weapon