Pārlūkot izejas kodu

Documentation update for
* `canParticipateSiegeTE` script

Signed-off-by: Cydh Ramdh <cydh@pservero.com>

Cydh Ramdh 9 gadi atpakaļ
vecāks
revīzija
292098d911
2 mainītis faili ar 9 papildinājumiem un 1 dzēšanām
  1. 8 0
      doc/script_commands.txt
  2. 1 1
      src/map/pc.c

+ 8 - 0
doc/script_commands.txt

@@ -4126,6 +4126,14 @@ job (for example, if you try to get the baby version of a Taekwon class).
 
 ---------------------------------------
 
+*canParticipateSiegeTE([<char_id>]);
+
+Returns 1 if player is allowed to participate in Siege/WOE TE.
+Player with 3rd classes, Kagerou/Oboro, and Rebellion cannot participate,
+the return value is 0.
+
+---------------------------------------
+
 *changebase <job ID number>{,<account ID>};
 
 This command will change a character's appearance to that of the specified job

+ 1 - 1
src/map/pc.c

@@ -11895,7 +11895,7 @@ void pc_show_questinfo_reinit(struct map_session_data *sd) {
 
 /**
  * Check if player can participate in WOE:TE
- * @param sd
+ * @param mapid Player's class @see enum e_mapid
  * @return True:If allowed, False:Doesn't
  **/
 bool pc_canParticipateSiegeTE(uint32 mapid) {