Merge pull request #1519 from Citadel-Station-13/upstream-merge-28245
[MIRROR] Fixes attacking not breaking chameleon
This commit is contained in:
@@ -408,6 +408,11 @@ GLOBAL_LIST_EMPTY(mutations_list)
|
|||||||
/datum/mutation/human/chameleon/on_move(mob/living/carbon/human/owner)
|
/datum/mutation/human/chameleon/on_move(mob/living/carbon/human/owner)
|
||||||
owner.alpha = CHAMELEON_MUTATION_DEFAULT_TRANSPARENCY
|
owner.alpha = CHAMELEON_MUTATION_DEFAULT_TRANSPARENCY
|
||||||
|
|
||||||
|
/datum/mutation/human/chameleon/on_attack_hand(mob/living/carbon/human/owner, atom/target, proximity)
|
||||||
|
if(proximity) //stops tk from breaking chameleon
|
||||||
|
owner.alpha = CHAMELEON_MUTATION_DEFAULT_TRANSPARENCY
|
||||||
|
return
|
||||||
|
|
||||||
/datum/mutation/human/chameleon/on_losing(mob/living/carbon/human/owner)
|
/datum/mutation/human/chameleon/on_losing(mob/living/carbon/human/owner)
|
||||||
if(..())
|
if(..())
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user