1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-07-28 16:32:27 +01:00

Merge pull request #1416 from NeroOneTrueKing/patch-twoweap-ranged-training

Only train twoweapon combat in melee
This commit is contained in:
Chris-plus-alphanumericgibberish 2021-01-22 12:18:36 -05:00 committed by GitHub
commit 3efcb617e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12914,7 +12914,7 @@ int vis; /* True if action is at all visible to the player */
bonsdmg += skill_damage;
/* now, train skills */
use_skill(u.twoweap ? P_TWO_WEAPON_COMBAT : wtype, 1);
use_skill((melee && u.twoweap) ? P_TWO_WEAPON_COMBAT : wtype, 1);
if (melee && weapon && is_lightsaber(weapon) && litsaber(weapon) && P_SKILL(wtype) >= P_BASIC){
use_skill(P_SHII_CHO, 1);