~armagetronad-ap/armagetronad/BattleMania

« back to all changes in this revision

Viewing changes to src/special/attack/interact.php

  • Committer: zodiacsohma1 at gmail
  • Date: 2014-03-02 08:09:55 UTC
  • Revision ID: zodiacsohma1@gmail.com-20140302080955-r5ot6eipfe0nlpww
Simplified all fields and code in all areas for better as they seem to repeat themselves.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
    //  check if the killed has a bounty on their head
25
25
    bountyTrigger($killed, $attacker, $killer_record);
26
26
 
27
 
    if ($killed->human && isset($killed_record) && !is_null($killed_record) && ($killed_record instanceof Record))
 
27
    if ($killed->human && isset($killed_record) && ($killed_record instanceof Record))
28
28
    {
29
29
        $killed_record->kills->bkilled++;
30
30
 
67
67
        //  this is to keep the young/lower level players safe from the wrath of the experienced players
68
68
        if (
69
69
            (Base::$base->game_mode == 0) &&
70
 
            $killed->human && isset($killed_record) && !is_null($killed_record) && ($killed_record instanceof Record) &&
 
70
            $killed->human && isset($killed_record) && ($killed_record instanceof Record) &&
71
71
            $attacker->human && isset($killer_record) && !is_null($killer_record) && ($killer_record instanceof Record)
72
72
        )
73
73
        {