Code improvements.

This commit is contained in:
MobiusDev
2016-04-24 16:30:15 +00:00
parent 8bd51aba1c
commit 2dd14bef9b
860 changed files with 8865 additions and 17041 deletions

View File

@@ -158,13 +158,10 @@ public class Q00508_AClansReputation extends Quest
if ((qs != null) && qs.isStarted())
{
final int raid = qs.getInt("raid");
if (REWARD_POINTS.containsKey(raid))
if (REWARD_POINTS.containsKey(raid) && (npc.getId() == REWARD_POINTS.get(raid).get(0)) && !hasQuestItems(player, REWARD_POINTS.get(raid).get(1)))
{
if ((npc.getId() == REWARD_POINTS.get(raid).get(0)) && !hasQuestItems(player, REWARD_POINTS.get(raid).get(1)))
{
rewardItems(player, REWARD_POINTS.get(raid).get(1), 1);
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
rewardItems(player, REWARD_POINTS.get(raid).get(1), 1);
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
}
return null;