Skip to content

Commit

Permalink
duels only (disabled by default)
Browse files Browse the repository at this point in the history
  • Loading branch information
yrpen committed Mar 22, 2017
1 parent 64c035e commit 137a304
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions pets_system/creature_on_target_combat.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
function Creature:onTargetCombat(target)
if PETS and PETS.SYSTEM.DUELS_ONLY then
if self:isPet() and target:isPlayer() or target:isPet() and self:isPlayer() then
return false
end
end
return true
end
3 changes: 2 additions & 1 deletion pets_system/pets_lib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ PETS = {
EVOLUTION = true,
MOUNTS = false,
TELEPORT = true,
PLAYER_SHARE_EXPERIENCE = false
PLAYER_SHARE_EXPERIENCE = false,
DUELS_ONLY = false
},

IDENTIFICATION = {
Expand Down

0 comments on commit 137a304

Please sign in to comment.