Skip to content
Snippets Groups Projects
Commit efba77b2 authored by Zoey76's avatar Zoey76
Browse files

BETA: Typo fixes for [10404]:

	* Missing bypass update.
		* Reported by: valanths1990
		* Patch by: valanths1990
	* Missing index validation.
		* Reported by: UnAfraid
parent 1e50261b
No related branches found
No related tags found
No related merge requests found
...@@ -5,16 +5,16 @@ ...@@ -5,16 +5,16 @@
<tr><td height=24></td></tr> <tr><td height=24></td></tr>
<tr><td><center> <tr><td><center>
<br><center> <br><center>
<a action="bypass -h npc_%objectId%_OlyBuff 4357">Haste Lv2</a><br> <a action="bypass -h npc_%objectId%_OlyBuff 0">Haste Lv2</a><br>
<a action="bypass -h npc_%objectId%_OlyBuff 4342">Wind Walk Lv2</a><br> <a action="bypass -h npc_%objectId%_OlyBuff 1">Wind Walk Lv2</a><br>
<a action="bypass -h npc_%objectId%_OlyBuff 4356">Empower Lv3</a><br> <a action="bypass -h npc_%objectId%_OlyBuff 2">Empower Lv3</a><br>
<a action="bypass -h npc_%objectId%_OlyBuff 4355">Acumen Lv3</a><br> <a action="bypass -h npc_%objectId%_OlyBuff 3">Acumen Lv3</a><br>
<a action="bypass -h npc_%objectId%_OlyBuff 4351">Concentration Lv6</a><br> <a action="bypass -h npc_%objectId%_OlyBuff 4">Concentration Lv6</a><br>
<a action="bypass -h npc_%objectId%_OlyBuff 4345">Might Lv3</a><br> <a action="bypass -h npc_%objectId%_OlyBuff 5">Might Lv3</a><br>
<a action="bypass -h npc_%objectId%_OlyBuff 4358">Guidance Lv3</a><br> <a action="bypass -h npc_%objectId%_OlyBuff 6">Guidance Lv3</a><br>
<a action="bypass -h npc_%objectId%_OlyBuff 4359">Focus Lv3</a><br> <a action="bypass -h npc_%objectId%_OlyBuff 7">Focus Lv3</a><br>
<a action="bypass -h npc_%objectId%_OlyBuff 4360">Death Whisper Lv3</a><br> <a action="bypass -h npc_%objectId%_OlyBuff 8">Death Whisper Lv3</a><br>
<a action="bypass -h npc_%objectId%_OlyBuff 4352">Berserker Spirit Lv2</a> <a action="bypass -h npc_%objectId%_OlyBuff 9">Berserker Spirit Lv2</a>
</center></td></tr> </center></td></tr>
<tr><td height=24></td></tr> <tr><td height=24></td></tr>
</table> </table>
......
...@@ -257,7 +257,14 @@ public class OlympiadManagerLink implements IBypassHandler ...@@ -257,7 +257,14 @@ public class OlympiadManagerLink implements IBypassHandler
return false; return false;
} }
final NpcBufferData npcBuffGroupInfo = NpcBufferTable.getInstance().getSkillInfo(target.getId(), BUFFS[Integer.parseInt(params[1])]); final int index = Integer.parseInt(params[1]);
if ((index < 0) || (index > BUFFS.length))
{
_log.warning("Olympiad Buffer Warning: npcId = " + target.getId() + " has invalid index sent in the bypass: " + index);
return false;
}
final NpcBufferData npcBuffGroupInfo = NpcBufferTable.getInstance().getSkillInfo(target.getId(), BUFFS[index]);
if (npcBuffGroupInfo == null) if (npcBuffGroupInfo == null)
{ {
_log.warning("Olympiad Buffer Warning: npcId = " + target.getId() + " Location: " + target.getX() + ", " + target.getY() + ", " + target.getZ() + " Player: " + activeChar.getName() + " has tried to use skill group (" + params[1] + ") not assigned to the NPC Buffer!"); _log.warning("Olympiad Buffer Warning: npcId = " + target.getId() + " Location: " + target.getX() + ", " + target.getY() + ", " + target.getZ() + " Player: " + activeChar.getName() + " has tried to use skill group (" + params[1] + ") not assigned to the NPC Buffer!");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment