From cf30a0aaaf9aa6a41a851fa8ac361be38352ff59 Mon Sep 17 00:00:00 2001 From: kiper Date: Tue, 14 Aug 2012 01:59:20 +0200 Subject: Core/Player: Now players will able to equip all types of relics when meet requirements from items and have relic skill. --- sql/updates/world/2012_08_14_00_reputation_spillover_template.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql') diff --git a/sql/updates/world/2012_08_14_00_reputation_spillover_template.sql b/sql/updates/world/2012_08_14_00_reputation_spillover_template.sql index cc7e011ca43..66dbf0e10e0 100644 --- a/sql/updates/world/2012_08_14_00_reputation_spillover_template.sql +++ b/sql/updates/world/2012_08_14_00_reputation_spillover_template.sql @@ -9,4 +9,4 @@ UPDATE `reputation_spillover_template` SET `faction5`=1133,`rate_5`=0.25,`rank_5 DELETE FROM `reputation_spillover_template` WHERE `faction` IN (1134,1133); INSERT INTO `reputation_spillover_template`(`faction`,`faction1`,`rate_1`,`rank_1`,`faction2`,`rate_2`,`rank_2`,`faction3`,`rate_3`,`rank_3`,`faction4`,`rate_4`,`rank_4`,`faction5`,`rate_5`,`rank_5`) VALUES (1134,72,0.25,7,47,0.27,7,54,0.25,7,930,0.25,7,69,0.25,7), -(1133,76,0.25,7,530,0.27,7,911,0.25,7,81,0.25,7,68,0.25,7), \ No newline at end of file +(1133,76,0.25,7,530,0.27,7,911,0.25,7,81,0.25,7,68,0.25,7); -- cgit v1.2.3 From 12ad39c43cc9ee576289203b76dc8faa0bfde517 Mon Sep 17 00:00:00 2001 From: kiper Date: Tue, 14 Aug 2012 02:08:29 +0200 Subject: Fix code style. --- sql/updates/world/2012_08_14_00_reputation_spillover_template.sql | 1 + src/server/game/Entities/Player/Player.cpp | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'sql') diff --git a/sql/updates/world/2012_08_14_00_reputation_spillover_template.sql b/sql/updates/world/2012_08_14_00_reputation_spillover_template.sql index 66dbf0e10e0..afce8209afa 100644 --- a/sql/updates/world/2012_08_14_00_reputation_spillover_template.sql +++ b/sql/updates/world/2012_08_14_00_reputation_spillover_template.sql @@ -10,3 +10,4 @@ DELETE FROM `reputation_spillover_template` WHERE `faction` IN (1134,1133); INSERT INTO `reputation_spillover_template`(`faction`,`faction1`,`rate_1`,`rank_1`,`faction2`,`rate_2`,`rank_2`,`faction3`,`rate_3`,`rank_3`,`faction4`,`rate_4`,`rank_4`,`faction5`,`rate_5`,`rank_5`) VALUES (1134,72,0.25,7,47,0.27,7,54,0.25,7,930,0.25,7,69,0.25,7), (1133,76,0.25,7,530,0.27,7,911,0.25,7,81,0.25,7,68,0.25,7); + diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index 3236c5e5865..17cead41795 100644 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -9936,9 +9936,10 @@ uint8 Player::FindEquipSlot(ItemTemplate const* proto, uint32 slot, bool swap) c break; case INVTYPE_RELIC: { - if(playerClass == CLASS_PALADIN || playerClass == CLASS_DRUID|| - playerClass == CLASS_SHAMAN || playerClass == CLASS_DEATH_KNIGHT) - slots[0] = EQUIPMENT_SLOT_RANGED; + if (playerClass == CLASS_PALADIN || playerClass == CLASS_DRUID || + playerClass == CLASS_SHAMAN || playerClass == CLASS_DEATH_KNIGHT) + slots[0] = EQUIPMENT_SLOT_RANGED; + break; } default: return NULL_SLOT; -- cgit v1.2.3