Browse Source

Fixed exorcism chance of Amatsu quest (#8810)

- Priests have a 75% success chance
- Monks and Acolytes have a 50% success chance
- Any other class with Holy Water, Bear's Footskin or Tiger's Skin has a 50% success chance
- Any other class without above items has a 25% success chance
- Fixes #8751
Playtester 6 months ago
parent
commit
3a838e984f
1 changed files with 8 additions and 2 deletions
  1. 8 2
      npc/quests/quests_amatsu.txt

+ 8 - 2
npc/quests/quests_amatsu.txt

@@ -1926,18 +1926,24 @@ ama_in01,22,111,0	script	Grandma#ama2	761,{
 		mes "it won't harm me!! Yelp!^000000";
 		mes "it won't harm me!! Yelp!^000000";
 		next;
 		next;
 		select("Taaaah!!");
 		select("Taaaah!!");
-		if ((BaseJob == Job_Priest || BaseJob != Job_Acolyte && BaseJob != Job_Monk) || (countitem(523) < 1 || countitem(948) < 1 || countitem(1029) < 1)) {
+		if (BaseJob == Job_Priest) {
 			if (rand(1,4) == 1)
 			if (rand(1,4) == 1)
 				set .@fox_kill,0;
 				set .@fox_kill,0;
 			else
 			else
 				set .@fox_kill,1;
 				set .@fox_kill,1;
 		}
 		}
-		else {
+		else if (BaseJob == Job_Acolyte || BaseJob == Job_Monk || countitem(523) > 0 || countitem(948) > 0 || countitem(1029) > 0) {
 			if (rand(1,2) == 1)
 			if (rand(1,2) == 1)
 				set .@fox_kill,0;
 				set .@fox_kill,0;
 			else
 			else
 				set .@fox_kill,1;
 				set .@fox_kill,1;
 		}
 		}
+		else {
+			if (rand(1,4) == 1)
+				set .@fox_kill,1;
+			else
+				set .@fox_kill,0;
+		}
 		if (.@fox_kill == 1) {
 		if (.@fox_kill == 1) {
 			mes "[....]";
 			mes "[....]";
 			mes "^FF6060Yelp! Yelp! Yelp! Human!";
 			mes "^FF6060Yelp! Yelp! Yelp! Human!";