diff options
-rw-r--r-- | sql/updates/5813_world_command.sql | 2 | ||||
-rw-r--r-- | src/game/Unit.cpp | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/sql/updates/5813_world_command.sql b/sql/updates/5813_world_command.sql index 7c0af4c4e0a..b9ec2a98d1a 100644 --- a/sql/updates/5813_world_command.sql +++ b/sql/updates/5813_world_command.sql @@ -1,5 +1,5 @@ DELETE FROM `command` WHERE `name` IN ('modify aspeed', 'modify bwalk', 'modify fly', 'modify scale', 'modify speed', 'modify swim'); -INSERT INTO `commands` VALUES +INSERT INTO `command` VALUES ('modify aspeed',1,'Syntax: .modify aspeed #rate\r\n\r\nModify all speeds -run,swim,run back,swim back- of the selected player to \"normalbase speed for this move type\"*rate. If no player is selected, modify your speed.\r\n\r\n #rate may range from 0.1 to 50.'), ('modify bwalk',1,'Syntax: .modify bwalk #rate\r\n\r\nModify the speed of the selected player while running backwards to \"normal walk back speed\"*rate. If no player is selected, modify your speed.\r\n\r\n #rate may range from 0.1 to 50.'), ('modify fly',1,'.modify fly $parameter\nModify the flying speed of the selected player to \"normal flying speed\"*rate. If no player is selected, modify your speed.\n #rate may range from 0.1 to 50.'), diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 6486462af11..98760807e4f 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -6770,7 +6770,7 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger // Improved Blood Presence if (dummySpell->SpellIconID == 2636) { - if (GetTypeId() != TYPEID_PLAYER || !((Player*)this)->isHonorOrXPTarget(pVictim)) + if (GetTypeId() != TYPEID_PLAYER) return false; basepoints0 = triggerAmount * damage / 100; // Blood Aura @@ -7519,8 +7519,7 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, AuraEffect* trig { if (GetTypeId() != TYPEID_PLAYER) return false; - if (!((Player*)this)->isHonorOrXPTarget(pVictim)) - return false; + trigger_spell_id = 50475; basepoints0 = damage * triggerAmount / 100; } |