Gisela
Bug Hunter
[SVN] [Gisela] Rune Beetles cannot retrain Poisoning
REQUIRED FIELDS:
Behavior on Demise: When a rune beetle dies, it loses .1 poisoning skill which can never be regained
Behavior on OSI: When a rune beetle dies, it is able to regain poisoning
Supporting Documentation (URLs): Several posts on this forum
Changes needed:
Code (optional):
I don't have any dev tools installed and can't write a proper patch or even compile test. My suggestion may be way out there but
In OnGaveMeleeAttack() in BaseCreature.cs, add a skillcheck when poison is successfully applied
Or make OnGaveMeleeAttack overrideable and add the check to RuneBeetle.cs only
REQUIRED FIELDS:
Behavior on Demise: When a rune beetle dies, it loses .1 poisoning skill which can never be regained
Behavior on OSI: When a rune beetle dies, it is able to regain poisoning
Supporting Documentation (URLs): Several posts on this forum
Changes needed:
Code (optional):
I don't have any dev tools installed and can't write a proper patch or even compile test. My suggestion may be way out there but
In OnGaveMeleeAttack() in BaseCreature.cs, add a skillcheck when poison is successfully applied
Code:
if ( p != null && HitPoisonChance >= Utility.RandomDouble() ) [COLOR=Red]{[/COLOR]
defender.ApplyPoison( this, p );
[COLOR=Red]if (this.Controlled)
this.CheckSkill(Skillname.Poisoning, this.Skills[Skillname.Poisoning].Cap);[/COLOR]
[COLOR=Red]}[/COLOR]